mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 19:23:52 +00:00
dont allow shorthand property assignments
This commit is contained in:
@@ -18,10 +18,10 @@ export default function i18nService(utilsService: UtilsService) {
|
||||
}
|
||||
|
||||
return new Proxy({}, {
|
||||
get(target, name) {
|
||||
get: (target, name) => {
|
||||
return chrome.i18n.getMessage(name);
|
||||
},
|
||||
set(target, name, value) {
|
||||
set: (target, name, value) => {
|
||||
return false;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user