Skip to content

Tabs popup not opening on waterfox/windows #1

@eissar

Description

@eissar

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions