瀏覽代碼

[WebAuthn] fix reload

FreddleSpl0it 3 年之前
父節點
當前提交
6788c528cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/templates/base.twig

+ 1 - 1
data/web/templates/base.twig

@@ -385,7 +385,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
             }).then(json => {
                 if (json.success) {
                     // reload on success
-                    window.location.href = window.location.href;
+                    window.location = window.location.href.split("#")[0];
                 } else {
                     throw new Error(json.msg);
                 }