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 ab0ea6c commit 62e5680Copy full SHA for 62e5680
chromium/extension/service-worker.js
@@ -13,7 +13,7 @@ const perplexityURL = 'https://www.perplexity.ai'
13
chrome.action.onClicked.addListener(async () => {
14
const [activeTab] = await chrome.tabs.query({ active: true, currentWindow: true }),
15
query = activeTab.url ? new URL(activeTab.url).searchParams.get('q') || 'hi' : 'hi'
16
- chrome.tabs.create({ url: `${perplexityURL}/search/new?q=${query}` })
+ chrome.tabs.update(activeTab.id, { url: `${perplexityURL}/search/new?q=${query}` })
17
})
18
19
// Query Perplexity on omnibox query submitted
0 commit comments