Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
philc committed Jan 11, 2024
1 parent 3908c4f commit 5be5fc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/url_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const UrlUtils = {
},

// Create a search URL from the given :query (using either the provided search URL, or the default
// one). It would be better to pull the default search engine from chrome itself. However, chrome
// one). It would be better to pull the default search engine from Chrome itself. However, Chrome
// does not provide an API for doing so.
createSearchUrl(query, searchUrl) {
if (searchUrl == null) {
Expand Down
6 changes: 3 additions & 3 deletions pages/vomnibar.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,10 @@ class VomnibarUI {
}

launchUrl(url, openInNewTab) {
// If the URL is a bookmarklet (so, prefixed with "javascript:"), then we always open it in the
// If the URL is a bookmarklet (so, prefixed with "javascript:"), then always open it in the
// current tab.
if (openInNewTab) {
openInNewTab = !Utils.hasJavascriptPrefix(url);
if (openInNewTab && Utils.hasJavascriptPrefix(url)) {
openInNewTab = false;
}
chrome.runtime.sendMessage({
handler: openInNewTab ? "openUrlInNewTab" : "openUrlInCurrentTab",
Expand Down

0 comments on commit 5be5fc1

Please sign in to comment.