Skip to content

Commit

Permalink
Renamed info param of chrome.tabs.onUpdated to changeInfo for rea…
Browse files Browse the repository at this point in the history
…dability
  • Loading branch information
adamlui committed Feb 20, 2025
1 parent bcd9872 commit a0bef95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepseek-omnibox/firefox/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const deepseekChatURL = 'https://chat.deepseek.com'
chrome.action.onClicked.addListener(() => chrome.tabs.create({ url: deepseekChatURL }))

// Query DeepSeek on omnibox query submitted
chrome.tabs.onUpdated.addListener((tabId, info, tab) => {
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo.status == 'complete' && tab.url.startsWith(deepseekChatURL)) {
const query = new URL(tab.url).searchParams.get('q')
if (query) chrome.tabs.sendMessage(tabId, query)
Expand Down

0 comments on commit a0bef95

Please sign in to comment.