changed: handle storage event for multiple windows
This commit is contained in:
parent
9027a0eff3
commit
6bd85c79d8
2 changed files with 1 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Josefin+Sans" />
|
||||
</head>
|
||||
|
||||
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()">
|
||||
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()" onstorage="loadstorage()">
|
||||
<script src="libs/showdown.min.js"></script>
|
||||
<script src="libs/vis-network.min.js"></script>
|
||||
|
||||
|
|
|
|||
1
main.js
1
main.js
|
|
@ -1189,7 +1189,6 @@ function init()
|
|||
|
||||
if (issplit())
|
||||
{
|
||||
window.onstorage = loadstorage;
|
||||
if (settings.defaultpreviewinsplit && name == "right")
|
||||
{
|
||||
togglepreview();
|
||||
|
|
|
|||
Loading…
Reference in a new issue