diff options
Diffstat (limited to '_posts')
-rw-r--r-- | _posts/2021-04-09-kako-se-znebiti-NLB-avtentikatorja.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/_posts/2021-04-09-kako-se-znebiti-NLB-avtentikatorja.html b/_posts/2021-04-09-kako-se-znebiti-NLB-avtentikatorja.html index 0e11591..03769f2 100644 --- a/_posts/2021-04-09-kako-se-znebiti-NLB-avtentikatorja.html +++ b/_posts/2021-04-09-kako-se-znebiti-NLB-avtentikatorja.html @@ -135,7 +135,7 @@ endofbody: <script src=//cdn.sijanec.eu/etc/npm/node_modules/@otplib/preset-brow Če bi bili sedaj na posebni povezavi, s katero generirate žetone, bi se tukaj izpisal trenutno veljaven žeton. Če ste na tej povezavi, očitno nekaj ne deluje. </p> <script> - var h; + var h = ""; window.onhashchange = function () { var x = window.location.hash.split("=").pop(); if (x != "") { @@ -146,9 +146,12 @@ endofbody: <script src=//cdn.sijanec.eu/etc/npm/node_modules/@otplib/preset-brow }; document.addEventListener("DOMContentLoaded", function () { window.otplib.hotp.options = {digits: 8, algorithm: "sha256", encoding: "hex"}; - h = window.location.hash.split("=").pop(); - if (h != "") + var x = window.location.hash.split("=").pop(); + if (x != "") { + window.location.hash = ""; /* da ni v URLju, če kdo pride mimo in slika ekran */ + h = x; document.getElementById("generator-otp-žetonov").scrollIntoView(); + } }); setInterval(function() { if (h != "") { |