Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
This commit is contained in:
@@ -18,14 +18,14 @@ MainProcessSingleton.prototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver,
|
||||
Ci.nsISupportsWeakReference]),
|
||||
|
||||
logConsoleMessage: function(message) {
|
||||
logConsoleMessage(message) {
|
||||
let logMsg = message.data;
|
||||
logMsg.wrappedJSObject = logMsg;
|
||||
Services.obs.notifyObservers(logMsg, "console-api-log-event", null);
|
||||
},
|
||||
|
||||
// Called when a webpage calls window.external.AddSearchProvider
|
||||
addSearchEngine: function({ target: browser, data: { pageURL, engineURL } }) {
|
||||
addSearchEngine({ target: browser, data: { pageURL, engineURL } }) {
|
||||
pageURL = NetUtil.newURI(pageURL);
|
||||
engineURL = NetUtil.newURI(engineURL, null, pageURL);
|
||||
|
||||
@@ -65,7 +65,7 @@ MainProcessSingleton.prototype = {
|
||||
})
|
||||
},
|
||||
|
||||
observe: function(subject, topic, data) {
|
||||
observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "app-startup": {
|
||||
Services.obs.addObserver(this, "xpcom-shutdown", false);
|
||||
|
||||
Reference in New Issue
Block a user