mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Removed onExecutionEnvironmentError (#14698)
* used correct method to stop snap * removed dead code, snap controller already subscribes to execution environment errors * fixed linting error
This commit is contained in:
parent
d305dcba9d
commit
a3917763d4
@ -637,7 +637,6 @@ export default class MetamaskController extends EventEmitter {
|
||||
|
||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||
this.workerController = new IframeExecutionService({
|
||||
onError: this.onExecutionEnvironmentError.bind(this),
|
||||
iframeUrl: new URL(
|
||||
'https://metamask.github.io/iframe-execution-environment/0.4.5',
|
||||
),
|
||||
@ -3377,17 +3376,6 @@ export default class MetamaskController extends EventEmitter {
|
||||
}
|
||||
|
||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||
/**
|
||||
* For snaps running in workers.
|
||||
*
|
||||
* @param snapId
|
||||
* @param error
|
||||
*/
|
||||
onExecutionEnvironmentError(snapId, error) {
|
||||
this.snapController.stopPlugin(snapId);
|
||||
this.snapController.addSnapError(error);
|
||||
}
|
||||
|
||||
/**
|
||||
* For snaps running in workers.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user