aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html17
1 files changed, 6 insertions, 11 deletions
diff --git a/background_page.html b/background_page.html
index ccd06044..bae23acb 100644
--- a/background_page.html
+++ b/background_page.html
@@ -222,32 +222,27 @@
};
}
- /**
+ /*
* Opens the url in the current tab.
*/
function openUrlInCurrentTab(request) {
chrome.tabs.getSelected(null, function(tab) {
- chrome.tabs.update(tab.id, {url: request.url});
+ chrome.tabs.update(tab.id, { url: utils.convertToUrl(request.url) });
});
}
- /**
+ /*
* Opens request.url in new tab and switches to it if request.selected is true.
- *
*/
function openUrlInNewTab(request) {
chrome.tabs.getSelected(null, function(tab) {
- chrome.tabs.create({ url: request.url, index: tab.index + 1, selected: true });
+ chrome.tabs.create({ url: utils.convertToUrl(request.url), index: tab.index + 1, selected: true });
});
}
- function openCopiedUrlInCurrentTab(request) {
- openUrlInCurrentTab({ url: utils.ensureUrl(Clipboard.paste()) });
- }
+ function openCopiedUrlInCurrentTab(request) { openUrlInCurrentTab({ url: Clipboard.paste() }); }
- function openCopiedUrlInNewTab(request) {
- openUrlInNewTab({ url: utils.ensureUrl(Clipboard.paste()) });
- }
+ function openCopiedUrlInNewTab(request) { openUrlInNewTab({ url: Clipboard.paste() }); }
/*
* Returns the user-provided CSS overrides.