Skip to content

Commit b392035

Browse files
committed
Updated notify() to work w/ new sendMsgToActiveTab() ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent b48fcb4 commit b392035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starters/chrome/extension/popup/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
return await chrome.tabs.sendMessage(activeTab.id, { action: action, options: { ...options }})
2222
}
2323

24-
function notify(msg) { sendMsgToActiveTab({ action: 'notify', msg: msg, pos: 'bottom-right' })}
24+
function notify(msg, pos = 'bottom-right') { sendMsgToActiveTab('notify', { msg, pos }) }
2525

2626
const sync = {
2727
fade() {

0 commit comments

Comments
 (0)