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:
- open new tab in Chromium
- open web developer console
- open page https://itnext.io/you-dont-know-tdd-691efe670094
- 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
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