diff --git a/extension/content.js b/extension/content.js index 950286d..77c40a6 100644 --- a/extension/content.js +++ b/extension/content.js @@ -12,7 +12,7 @@ // Add CHROME MSG listener chrome.runtime.onMessage.addListener(req => { - if (req.action == 'notify') notify(req.msg, req.position) + if (req.action == 'notify') notify(req.msg, req.pos) else if (req.action == 'alert') siteAlert(req.title, req.msg, req.btns) else if (req.action == 'syncStorageToUI') syncStorageToUI() }) diff --git a/extension/popup/popup.js b/extension/popup/popup.js index dd03349..867529c 100644 --- a/extension/popup/popup.js +++ b/extension/popup/popup.js @@ -51,10 +51,10 @@ // Define FEEDBACK functions - function notify(msg, position) { + function notify(msg, pos) { chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => { chrome.tabs.sendMessage(tabs[0].id, { - action: 'notify', msg: msg, position: position || 'bottom-right' }) + action: 'notify', msg: msg, pos: pos || 'bottom-right' }) })} function alertToUpdate(version) {