()
| 941 | } |
| 942 | |
| 943 | async function backup() { |
| 944 | trackEvent("BACKUP"); |
| 945 | const data = { |
| 946 | localStorage, |
| 947 | chromeStorage: await chrome.storage.local.get(), |
| 948 | time: new Date().getTime(), |
| 949 | }; |
| 950 | const name = "useful-script-backup-" + new Date().toISOString() + ".json"; |
| 951 | UfsGlobal.Utils.downloadData(JSON.stringify(data), name); |
| 952 | } |
| 953 | |
| 954 | async function restore() { |
| 955 | const { checkPass } = await import("../scripts/auto_lockWebsite.js"); |
nothing calls this directly
no test coverage detected