Skip to content

Commit

Permalink
fix javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
atoponce committed Mar 20, 2018
1 parent 9159e6c commit d9d1530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ <h1>Passphrase and Password Generator</h1>
</div>

<!-- core functions -->
<!--
<script integrity="sha256-CFcRL3leJhjV6j9ajqKl2RljH8C8/N25yUldjOMlbIQ=" crossorigin="anonymous" src="js/main.ebe3535cf1df76a4404a34c88d9bdcec4fa31f4459df8a1e3b4437a6.js"></script>
-->
<script src="js/main.ebe3535cf1df76a4404a34c88d9bdcec4fa31f4459df8a1e3b4437a6.js"></script>
<script integrity="sha256-7f0w188cgzVmMwoqQrCizzEw7wNklE0wQAly72LV/MU=" crossorigin="anonymous" src="js/main.d8eddced37bac462f18a5cea384a64b162a001cdda15a438f26ab687.js"></script>

<!--
Because the word lists are static, and not changing, the filename is given a SHA-224 digest of its content. The web server can then be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ function set_dark_theme() {
function swap_stylesheet() {
var chosen_theme = document.getElementById("theme_switcher").innerText;
if(chosen_theme == "Dark Theme") {
//localStorage.setItem("theme", "dark");
window.location = "index.html"
window.name = "dark";
localStorage.setItem("theme", "dark");
set_dark_theme();
}
else {
//localStorage.removeItem("theme");
window.name = "";
localStorage.removeItem("theme");
set_light_theme();
}
}
Expand Down

0 comments on commit d9d1530

Please sign in to comment.