bookmarks-commander icon indicating copy to clipboard operation
bookmarks-commander copied to clipboard

fix: Stop using the InstallTrigger API to detect Firefox

Open joaodefelipe opened this issue 3 years ago • 1 comments

The InstallTrigger API has been deprecated since Firefox version 100. On recent builds of Firefox Developer Edition, it is undefined, causing rootID to be set to "0". On Firefox-based browsers, calling bookmarks.getChildren() with this value throws an error.

This commit changes this browser detection technique to User Agent matching.

joaodefelipe avatar Oct 26 '22 08:10 joaodefelipe

@brian-girko +1 图片

Skylarzz avatar May 30 '23 07:05 Skylarzz