We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b605da9 + d505608 commit f421191Copy full SHA for f421191
packages/api/src/proxy.ts
@@ -59,11 +59,13 @@ export class ApiProxy<TTarget extends DevtoolsPluginApi<any> = DevtoolsPluginApi
59
},
60
}
61
62
- hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
63
- if (pluginId === this.plugin.id) {
64
- this.fallbacks.setSettings(value)
65
- }
66
- })
+ if (hook) {
+ hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
+ if (pluginId === this.plugin.id) {
+ this.fallbacks.setSettings(value)
+ }
67
+ })
68
69
70
this.proxiedOn = new Proxy({} as Hookable<Context>, {
71
get: (_target, prop: string) => {
0 commit comments