Skip to content

Commit

Permalink
add partner plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Sep 2, 2024
1 parent 64bec7b commit 220c54c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/remix-ide/src/remixAppManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const dependentModules = ['foundry', 'hardhat', 'truffle', 'slither']

const loadLocalPlugins = ['doc-gen', 'doc-viewer', 'etherscan', 'vyper', 'solhint', 'walletconnect', 'circuit-compiler', 'learneth', 'quick-dapp']

const partnerPlugins = ['cookbookdev']

const sensitiveCalls = {
fileManager: ['writeFile', 'copyFile', 'rename', 'copyDir'],
contentImport: ['resolveAndSave'],
Expand Down Expand Up @@ -206,6 +208,11 @@ export class RemixAppManager extends PluginManager {
return true
}

// skipping partner plugins' requests
if (partnerPlugins[from]) {
return true
}

// ask the user for permission
return await this.call('permissionhandler', 'askPermission', this.profiles[from], this.profiles[to], method, message, isSensitiveCall)
}
Expand Down

0 comments on commit 220c54c

Please sign in to comment.