-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I had issue getting the extension to work on waterfox/windows 11. In the console, I was getting errors where the dimensions of the window were floats and windows.create was expecting an int. Strange thing is the width section was getting an error as well, even though it is converted to an int a couple of lines above. Adding extra parseInt calls to the fields seems to make it work.
Source:
const popup = await browser.windows.create({
url: browser.runtime.getURL("popup.html"),
type: "popup",
width: width,
height: height,
top: top,
left: left
});Change:
const popup = await browser.windows.create({
url: browser.runtime.getURL("popup.html"),
type: "popup",
width: parseInt(width),
height: parseInt(height),
top: parseInt(top),
left: parseInt(left)
});also: Awesome project. Thank you very much!
MrParent
Metadata
Metadata
Assignees
Labels
No labels