We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dcfe51 commit b3367d8Copy full SHA for b3367d8
chromium/extension/service-worker.js
@@ -1,7 +1,8 @@
1
-// Launch perplexity.ai on toolbar icon click
2
-chrome.action.onClicked.addListener(() =>
3
- chrome.tabs.create({ url: 'https://www.perplexity.ai' }))
+const perplexityURL = 'https://www.perplexity.ai'
4
5
-// Query perplexity.ai on omnibox query submitted
+// Launch Perplexity on toolbar icon click
+chrome.action.onClicked.addListener(() => chrome.tabs.create({ url: perplexityURL }))
+
6
+// Query Perplexity on omnibox query submitted
7
chrome.omnibox.onInputEntered.addListener(query =>
- chrome.tabs.update({ url: `https://www.perplexity.ai/search/new?q=${decodeURIComponent(query)}` }))
8
+ chrome.tabs.update({ url: `${perplexityURL}/search/new?q=${decodeURIComponent(query)}` }))
0 commit comments