projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1aa40b
)
use storage with proper var name to manage tab duplication
author
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 11:37:26 +0000
(13:37 +0200)
committer
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 11:37:26 +0000
(13:37 +0200)
web/index.php
patch
|
blob
|
history
diff --git
a/web/index.php
b/web/index.php
index
0259193
..
c59f016
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-1255,6
+1255,16
@@
cookie_law(null);
var spo_slide, sup_slide;
window.onload = function() {
+ if ('localStorage' in window) {
+ var v_name = cookiepath.replace(/\//g, '') + '_index_page_id';
+ var local_page_id = window.localStorage.getItem(v_name);
+ if (local_page_id == page_id) {
+ window.location.reload();
+ }
+ else {
+ window.localStorage.setItem(v_name, page_id);
+ }
+ }
if ($$('#prevent_reuse').val() == "") {
$$('#prevent_reuse').val("first load");