Skip to content

Commit 08a7837

Browse files
committed
fix reading applet role
1 parent e668c59 commit 08a7837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/ui/extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Extension.prototype = {
416416
lockRole: function(roleProvider) {
417417
if (this.meta && this.meta.role) {
418418
let meta_role_list_str = this.meta.role;
419-
let meta_roles = meta_role_list_str.replace(" ", "").split(",");
419+
let meta_roles = meta_role_list_str.replaceAll(" ", "").split(",");
420420

421421
let avail_roles = [];
422422

@@ -449,7 +449,7 @@ Extension.prototype = {
449449
unlockRoles: function() {
450450
if (this.meta.role) {
451451
let meta_role_list_str = this.meta.role;
452-
let meta_roles = meta_role_list_str.replace(" ", "").split(",");
452+
let meta_roles = meta_role_list_str.replaceAll(" ", "").split(",");
453453

454454
for (let role of meta_roles) {
455455
if (Type[this.upperType].roles[role] === this.uuid) {

0 commit comments

Comments
 (0)