zalmoxisus/redux-devtools-extension

Compatibility issue with many sites using old way to connect to devtools in Chromium

Dema opened this issue · 0 comments

Dema commented

I'm experiencing crashes of many sites that are using the old way of connecting to devtools

Steps to reproduce:

  1. open new tab in Chromium
  2. open web developer console
  3. open page https://itnext.io/you-dont-know-tdd-691efe670094
  4. Images are not loaded and in console I see
Uncaught (in promise) TypeError: window.__REDUX_DEVTOOLS_EXTENSION__ is not a function

The offending code looks like this:

, n = Rn.qC("undefined" != typeof window && void 0 !== window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : function(e) {

However, window.__REDUX_DEVTOOLS_EXTENSION__ is not a function, but an object with connect property
image

Maybe we can make __REDUX_DEVTOOLS_EXTENSION__ to be a function object with connect property for old sites to still work?

I'm using chrome://extensions/?id=lmhkpmbekcpmknklioeibfkpmmfibljd version: 2.17.0