Skip to content

Commit 2404353

Browse files
committed
Add interval check for onReload function.
1 parent f692714 commit 2404353

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devtools/test_dashboard/devtools.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ var Tabs = {
100100
console.warn('plotly.js reloaded at ' + reloadTime);
101101
reloaded.textContent = 'last reload at ' + reloadTime;
102102

103-
Tabs.onReload();
103+
var interval = setInterval(function() {
104+
if(window.Plotly) {
105+
clearInterval(interval);
106+
Tabs.onReload();
107+
}
108+
}, 100);
104109
}
105110
};
106111

0 commit comments

Comments
 (0)