Fix for Android FF, not for normal user

This is a change for developers, and it is recommended to use Kiwi Browser if you want to use this extension on your Android device.
Issues regarding Firefox for Android will not be accepted unless there is a PR for the fix.
This commit is contained in:
FoxRefire 2024-09-09 00:43:15 +09:00
parent c2dfbd5d2f
commit 384fa9fdc9

View File

@ -72,13 +72,17 @@ chrome.runtime.onMessage.addListener(
);
} )()
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.windows.create({
url: "popup.html",
type: "popup",
width: 820,
height: 600
});
chrome.browserAction.onClicked.addListener(tab => {
if(chrome.windows){
chrome.windows.create({
url: "popup.html",
type: "popup",
width: 820,
height: 600
});
} else {
chrome.tabs.create({url: 'popup.html'})
}
});
function createMenu(){