From 236b8333328c4a6c1f154f2831a21b90ac59fdb3 Mon Sep 17 00:00:00 2001 From: Naor Vilensky <33194442+naorvilensky@users.noreply.github.com> Date: Mon, 24 Dec 2018 14:16:12 +0200 Subject: [PATCH] `window.devToolsExtension` is deprecated in favor of `window.__REDUX_DEVTOOLS_EXTENSION__`, and will be removed in next version of Redux DevTools Changing the 'devToolsExtension' to '__REDUX_DEVTOOLS_EXTENSION__' in light of deprecation in the next version of redux devtools --- src/components/dev-tools.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dev-tools.ts b/src/components/dev-tools.ts index e44e30f..a2d1316 100644 --- a/src/components/dev-tools.ts +++ b/src/components/dev-tools.ts @@ -28,7 +28,7 @@ export class DevToolsExtension { } // Make sure changes from dev tools update angular's view. - environment.devToolsExtension.listen(({ type }: any) => { + environment.__REDUX_DEVTOOLS_EXTENSION__.listen(({ type }: any) => { if (type === 'START') { subscription = this.ngRedux.subscribe(() => { if (!NgZone.isInAngularZone()) { @@ -40,11 +40,11 @@ export class DevToolsExtension { } }); - return environment.devToolsExtension(options); + return environment.__REDUX_DEVTOOLS_EXTENSION__(options); }; /** * Returns true if the extension is installed and enabled. */ - isEnabled = () => environment && environment.devToolsExtension; + isEnabled = () => environment && environment.__REDUX_DEVTOOLS_EXTENSION__; }