Browse Source

Factorise a line in internal/ui/static/js/app.js

jvoisin 1 year ago
parent
commit
a06657b74d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      internal/ui/static/js/app.js

+ 1 - 2
internal/ui/static/js/app.js

@@ -751,11 +751,10 @@ function checkShareAPI(title, url) {
             title: title,
             url: url
         });
-        window.location.reload();
     } catch (err) {
         console.error(err);
-        window.location.reload();
     }
+    window.location.reload();
 }
 
 function getCsrfToken() {