Skip to content

Commit

Permalink
delete window.PlotlyLocales after locales are registered
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Dec 30, 2019
1 parent 6940aac commit f169380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ register([
]);

// locales that are present in the window should be loaded
if(window.PlotlyLocales && window.PlotlyLocales.length) {
if(window.PlotlyLocales && Array.isArray(window.PlotlyLocales)) {
register(window.PlotlyLocales);
delete window.PlotlyLocales;
}

// plot icons
Expand Down

0 comments on commit f169380

Please sign in to comment.