Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: userscript, chrome, is_addon() didn't work
At least Tampermonkey seemingly exposes some `chrome` API to userscripts run on Chrome. Because of this, the userscript/addon detection/ distinction did not work. This is fixed by checking whether the `chrome` API has a `chrome.runtime` field #1.
- Loading branch information