mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-04 14:19:13 -04:00
Removed eval
This commit is contained in:
parent
456f904050
commit
d366976065
1 changed files with 2 additions and 1 deletions
3
src/static/js/vendors/html10n.ts
vendored
3
src/static/js/vendors/html10n.ts
vendored
|
@ -619,7 +619,8 @@ export class Html10n {
|
|||
str.args = JSON.parse(node.getAttribute('data-l10n-args') as string)
|
||||
}else{
|
||||
try{
|
||||
str.args = eval(node.getAttribute('data-l10n-args') as string)
|
||||
//str.args = eval(node.getAttribute('data-l10n-args') as string)
|
||||
console.error("Old eval method invoked!!")
|
||||
}catch(e) {
|
||||
console.warn('Couldn\'t parse args for '+str.id)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue