Skip to content

Commit 2ea0b4e

Browse files
committed
Fixes checking for Redux DevTools extension.
1 parent 0bb7017 commit 2ea0b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/BlazorReduxDevToolsExtension/content/ReduxDevToolsExtension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const methodName = "OnMessageReceived";
66
const withDevTools = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__);
77
const BlazorReduxDevToolsExtension = {};
88
Blazor.registerFunction('BlazorReduxDevToolsExtension.IsAvailable', function () {
9-
return withDevTools !== null;
9+
return withDevTools !== undefined;
1010
});
1111
Blazor.registerFunction('BlazorReduxDevToolsExtension.Connect', function (options) {
1212
BlazorReduxDevToolsExtension.devTools = withDevTools.connect(options);

0 commit comments

Comments
 (0)