Making extensions/chromium/extension-router.js adhere to the style guide

This commit is contained in:
Tim van der Meij 2014-03-09 23:14:01 +01:00
parent c29350219e
commit 8d2068dc6f

View File

@ -18,6 +18,7 @@ limitations under the License.
/* globals chrome */
'use strict';
(function ExtensionRouterClosure() {
var VIEWER_URL = chrome.extension.getURL('content/web/viewer.html');
var CRX_BASE_URL = chrome.extension.getURL('/');
@ -102,11 +103,11 @@ limitations under the License.
return { redirectUrl: url };
}
}, {
types: ['main_frame', 'sub_frame'],
urls: schemes.map(function(scheme) {
// Format: "chrome-extension://[EXTENSIONID]/<scheme>*"
return CRX_BASE_URL + scheme + '*';
})
types: ['main_frame', 'sub_frame'],
urls: schemes.map(function(scheme) {
// Format: "chrome-extension://[EXTENSIONID]/<scheme>*"
return CRX_BASE_URL + scheme + '*';
})
}, ['blocking']);
chrome.runtime.onMessage.addListener(function(message, sender) {