theme: theme
};
- const exportURL = window.location.href.replace("settings", "").replace(".html", "") + "index.html#" + btoa(JSON.stringify(dataExport));
+ const exportURL = window.location.href.replace("settings", "").replace(".html", "") + "index.html#" + btoa(encodeURIComponent(JSON.stringify(dataExport)));
if (!window.navigator.userAgent.includes("Firefox") && !/(Linux|Windows|Mac)/g.test(window.navigator.platform)) {
}, 2000);
} catch (e) {
- window.alert(e);
console.error(e);
}
} else {
- window.alert("Window not detected");
-
navigator.clipboard.writeText(exportURL);
exportDataText.innerHTML = "link copied!";
try {
- ({todos, archived, theme} = JSON.parse(atob(window.location.hash.substring(1)))); // using parenthesis around this is required because we're doing object literal destructuring without a declaration
+ ({todos, archived, theme} = JSON.parse(decodeURIComponent(atob(window.location.hash.substring(1))))); // using parenthesis around this is required because we're doing object literal destructuring without a declaration
backupData();
} catch (e) {