Closed marvinhosea closed 3 years ago
I am trying to run chrome apis in vue files but I am getting undefined on chrome. Maybe I am doing something wrong how do I manage to run chrome APIs in Vue files
chrome.windows.getCurrent(function(currentWindow) { currentWindowId = currentWindow.id; chrome.windows.getLastFocused(function(focusedWindow) { focusedWindowId = focusedWindow.id; loadWindowList(); }); }); Expect run chrome APIs
Fedora 32 Node 12
Figured out that content script does not support direct tabs api
I am trying to run chrome apis in vue files but I am getting undefined on chrome. Maybe I am doing something wrong how do I manage to run chrome APIs in Vue files
chrome.windows.getCurrent(function(currentWindow) { currentWindowId = currentWindow.id; chrome.windows.getLastFocused(function(focusedWindow) { focusedWindowId = focusedWindow.id; loadWindowList(); }); }); Expect run chrome APIs
Fedora 32 Node 12