userscript...

This commit is contained in:
Gabe Yuan
2023-08-05 20:11:02 +08:00
parent f5dd215ae7
commit b5f1da18a6
7 changed files with 96 additions and 37 deletions

View File

@@ -71,11 +71,6 @@ export function StoragesProvider({ children }) {
return () => {
if (isExt) {
browser.storage.onChanged.removeListener(handleChanged);
} else if (isGm) {
(
window.GM_removeValueChangeListener ||
window.GM.removeValueChangeListener
)(handleChanged);
} else {
window.removeEventListener("storage", handleChanged);
}