added onboarding reset
This commit is contained in:
parent
0a90a77125
commit
55e4b91a43
2 changed files with 6 additions and 0 deletions
|
@ -74,9 +74,14 @@ function storeShortcutChoice (event) {
|
|||
});
|
||||
}
|
||||
|
||||
function resetOnboarding() {
|
||||
browser.storage.local.set({"onboarding-stage": 0});
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", setupOptions);
|
||||
document.querySelector("#bookmarksPermissions").addEventListener( "change", requestPermissions);
|
||||
document.querySelector("#syncCheck").addEventListener( "change", enableDisableSync);
|
||||
document.querySelector("button").addEventListener("click", resetOnboarding);
|
||||
|
||||
for (let i=0; i < NUMBER_OF_KEYBOARD_SHORTCUTS; i++) {
|
||||
document.querySelector("#open_container_"+i)
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
<select id="open_container_1">
|
||||
</select>
|
||||
</label></p>
|
||||
<button>Reset Onboarding Panels </button>
|
||||
</form>
|
||||
<script src="js/options.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue