Commit 6e242d843af4b3515ea51a40a3e9af9035b38b43
1 parent
44cffc23
plugin update
Showing
2 changed files
with
7 additions
and
5 deletions
bower_components/neon-animation/neon-animated-pages.html
datalets/base-datalet/base-datalet.html
... | ... | @@ -288,10 +288,12 @@ Example : |
288 | 288 | translate: function() { |
289 | 289 | var ln = "en"; |
290 | 290 | |
291 | - if(ODE && ODE.user_language) | |
292 | - ln = ODE.user_language; | |
293 | - else if(parent && parent.ODE && parent.ODE.user_language) | |
294 | - ln = parent.ODE.user_language; | |
291 | + try { | |
292 | + if (ODE && ODE.user_language) | |
293 | + ln = ODE.user_language; | |
294 | + else if (parent && parent.ODE && parent.ODE.user_language) | |
295 | + ln = parent.ODE.user_language; | |
296 | + }catch (e){} | |
295 | 297 | |
296 | 298 | this.$.export_to_html.innerHTML = base_datalet_ln["export_HTML_" + ln]; |
297 | 299 | this.$.export_to_png.innerHTML = base_datalet_ln["export_PNG_" + ln]; | ... | ... |