Skip to content

Commit ab0116e

Browse files
yann300Aniket-Engg
authored andcommitted
remove VM from list
1 parent 728919f commit ab0116e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/remix-ide/src/remixAppManager.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ const isInjectedProvider = (name) => {
9696
return name.startsWith('injected')
9797
}
9898

99+
const isVM = (name) => {
100+
return name.startsWith('vm')
101+
}
102+
99103
export function isNative(name) {
100104

101105
// nativePlugin allows to bypass the permission request
@@ -125,7 +129,7 @@ export function isNative(name) {
125129
'remixGuide',
126130
'walletconnect'
127131
]
128-
return nativePlugins.includes(name) || requiredModules.includes(name) || isInjectedProvider(name)
132+
return nativePlugins.includes(name) || requiredModules.includes(name) || isInjectedProvider(name) || isVM(name)
129133
}
130134

131135
/**
@@ -232,7 +236,7 @@ export class RemixAppManager extends PluginManager {
232236

233237
isRequired(name) {
234238
// excluding internal use plugins
235-
return requiredModules.includes(name) || isInjectedProvider(name)
239+
return requiredModules.includes(name) || isInjectedProvider(name) || isVM(name)
236240
}
237241

238242
async registeredPlugins() {

0 commit comments

Comments
 (0)