Bug 1518076 - Fix linting error in WeTransfer extension; rs=me a=jorgk
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 11 Jan 2019 10:31:25 +1300
changeset 33936 8c04d754f176d44922db2339bb16082f4d0e58e3
parent 33935 def81e026d016e67859ae43e7356508ba8090b5b
child 33937 0fdc3179087f0d2982335da5667547c000488bf1
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersme, jorgk
bugs1518076
Bug 1518076 - Fix linting error in WeTransfer extension; rs=me a=jorgk
mail/components/cloudfile/wetransfer/content/moments.js
--- a/mail/components/cloudfile/wetransfer/content/moments.js
+++ b/mail/components/cloudfile/wetransfer/content/moments.js
@@ -1,12 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+/* globals browser */
+
 (async () => {
   for (let element of document.querySelectorAll("[data-message]")) {
     element.textContent = browser.i18n.getMessage(element.dataset.message);
   }
 
   let resp = await fetch("https://backgrounds.wetransfer.net/moment/list.json");
   let items = await resp.json();
   let item = items[Math.floor(Math.random() * items.length)];