Revert "Remove custom extension confirmation"

This reverts commit cc670272a2.

No, it's not safe.
This commit is contained in:
Thomas Weber committed 2021-03-13 10:14:49 -06:00
1 parent a92027e85f
commit 4d1ecb3cc2
1 file changed
+4 -1
+4 -1
View File
@@ -362,7 +362,10 @@ const TWStateManager = function (WrappedComponent) {
}
for (const extension of urlParams.getAll('extension')) {
this.props.vm.extensionManager.loadExtensionURL(extension);
// This is temporary until we feel more comfortable about the idea of running remote code in a Worker.
if (confirm(`Load extension: ${extension}`)) {
this.props.vm.extensionManager.loadExtensionURL(extension);
}
}
const routerCallbacks = {