Bug 1614235 - followup to fix linting. rs=eslint DONTBUILD
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 20 Feb 2020 12:26:46 +0200
changeset 37393 228fc7494fb8fe326384b10edf58b529d260b19d
parent 37392 231dc57f37045ab32c675e43a8058438d211129d
child 37394 5df68d3ea93c806240b4594bbbfb7fa6ae9a88b4
push id2566
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:20:31 +0000
treeherdercomm-beta@a352facfa0a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseslint
bugs1614235
Bug 1614235 - followup to fix linting. rs=eslint DONTBUILD
common/src/viewSource.js
--- a/common/src/viewSource.js
+++ b/common/src/viewSource.js
@@ -18,17 +18,19 @@ addEventListener("load", () => {
     document.title =
       document.documentElement.getAttribute("titlepreface") +
       gBrowser.contentDocument.title +
       document.documentElement.getAttribute("titlemenuseparator") +
       document.documentElement.getAttribute("titlemodifier");
   });
 
   if (Services.prefs.getBoolPref("view_source.wrap_long_lines", false)) {
-    document.getElementById("cmd_wrapLongLines").setAttribute("checked", "true");
+    document
+      .getElementById("cmd_wrapLongLines")
+      .setAttribute("checked", "true");
   }
 
   gViewSourceUtils.viewSourceInBrowser({
     ...window.arguments[0],
     viewSourceBrowser: gBrowser,
   });
 });
 
@@ -36,17 +38,19 @@ var viewSourceChrome = {
   promptAndGoToLine() {
     let actor = gViewSourceUtils.getViewSourceActor(gBrowser.browsingContext);
     actor.manager.getActor("ViewSourcePage").promptAndGoToLine();
   },
 
   toggleWrapping() {
     let state = gBrowser.contentDocument.body.classList.toggle("wrap");
     if (state) {
-      document.getElementById("cmd_wrapLongLines").setAttribute("checked", "true");
+      document
+        .getElementById("cmd_wrapLongLines")
+        .setAttribute("checked", "true");
     } else {
       document.getElementById("cmd_wrapLongLines").removeAttribute("checked");
     }
     Services.prefs.setBoolPref("view_source.wrap_long_lines", state);
   },
 
   /**
    * Called by clicks on a menu populated by CharsetMenu.jsm to