| 307 | | 307 | |
| 308 | if (!isDisabled) { | 308 | if (!isDisabled) { |
| 309 | const promise = Promise.all([addExtensionScript(name, manifest), addExtensionStyle(name, manifest)]); | 309 | const promise = Promise.all([addExtensionScript(name, manifest), addExtensionStyle(name, manifest)]); |
| 310 | promise | 310 | await promise |
| 311 | .then(() => activeExtensions.add(name)) | 311 | .then(() => activeExtensions.add(name)) |
| 312 | .catch(err => console.log('Could not activate extension: ' + name, err)); | 312 | .catch(err => console.log('Could not activate extension: ' + name, err)); |
| 313 | promises.push(promise); | 313 | promises.push(promise); |