You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
l10n.js?v=7c2085d9b0883fc1b34b2525f35eecdd:87
I looked into this before but didn't find any good solution... another idea would be to generate that function directly in the locale's translation JS file.
Activity
LukasReschke commentedon Nov 3, 2014
Notes:
LukasReschke commentedon Nov 3, 2014
@PVince81 Any chance to generate the plural function without using an eval-like construct?
PVince81 commentedon Nov 4, 2014
I looked into this before but didn't find any good solution... another idea would be to generate that function directly in the locale's translation JS file.
LukasReschke commentedon Jan 26, 2015
Would love to get rid of that. – We really need this considering some recent hiccups in some JS code components.
@DeepDiver1975
6 remaining items
PVince81 commentedon Feb 18, 2016
@LukasReschke also the handlebars situation was not solved.
Move to 9.1 ?
LukasReschke commentedon Feb 18, 2016
Yes.
PVince81 commentedon Jun 1, 2016
Still can't get rid of eval due to client-side compiling of handlebars templates: #12848
PVince81 commentedon Jan 27, 2017
Not possible until we have precompiled handlebars templates everywhere -> backlog