summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js')
-rw-r--r--chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js b/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
index daad1a48933..1f072648861 100644
--- a/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
+++ b/chromium/chrome/browser/resources/chromeos/chromevox/chromevox/background/background.js
@@ -281,24 +281,20 @@ cvox.ChromeVoxBackground.prototype.addBridgeListener = function() {
switch (target) {
case 'OpenTab':
- var destination = new Object();
- destination.url = msg['url'];
+ var destination = {url: msg['url']};
chrome.tabs.create(destination);
break;
case 'KbExplorer':
- var explorerPage = new Object();
- explorerPage.url = 'chromevox/background/kbexplorer.html';
+ var explorerPage = {url: 'chromevox/background/kbexplorer.html'};
chrome.tabs.create(explorerPage);
break;
case 'HelpDocs':
- var helpPage = new Object();
- helpPage.url = 'http://chromevox.com/tutorial/index.html';
+ var helpPage = {url: 'http://chromevox.com/tutorial/index.html'};
chrome.tabs.create(helpPage);
break;
case 'Options':
if (action == 'open') {
- var optionsPage = new Object();
- optionsPage.url = 'chromevox/background/options.html';
+ var optionsPage = {url: 'chromevox/background/options.html'};
chrome.tabs.create(optionsPage);
}
break;