Skip to content

Commit f169380

Browse files
committed
delete window.PlotlyLocales after locales are registered
1 parent 6940aac commit f169380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ register([
6666
]);
6767

6868
// locales that are present in the window should be loaded
69-
if(window.PlotlyLocales && window.PlotlyLocales.length) {
69+
if(window.PlotlyLocales && Array.isArray(window.PlotlyLocales)) {
7070
register(window.PlotlyLocales);
71+
delete window.PlotlyLocales;
7172
}
7273

7374
// plot icons

0 commit comments

Comments
 (0)