diff --git a/lib/notifications.js b/lib/notifications.js index 98d9dcb..aab433e 100644 --- a/lib/notifications.js +++ b/lib/notifications.js @@ -2,14 +2,15 @@ /* 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/. */ - +(function(){ +"use strict"; var URL = require("sdk/url").URL; const {parseErrorStack} = require("./callingStack"); var tabUtils = require("sdk/tabs/utils"); exports.notify = function({url, errorStack, messageId}, {lists, notificationPref, _, browser, window}){ - "use strict"; + var callingStackMsg = parseErrorStack(errorStack); var contentURL = new URL(url); @@ -121,4 +122,5 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref } return notification; } -}; \ No newline at end of file +}; +}()); \ No newline at end of file