Skip to content

Commit 13d1fc4

Browse files
committed
Warn when opening the extension's window explicitely
Related to #229.
1 parent a383957 commit 13d1fc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/api/openWindow.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
export default function openWindow(position) {
2+
/* eslint-disable no-console */
3+
console.warn('Redux DevTools Extension\'s window was opened as ' +
4+
'`window.devToolsExtension.open()` was called from the app. ' +
5+
'Remove this command for better experience.');
6+
/* eslint-enable no-console */
27
window.postMessage({
38
source: '@devtools-page',
49
type: 'OPEN',

0 commit comments

Comments
 (0)