mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-03-29 14:04:22 +03:00
* Update Chrome manifest.json * Remove use of window in background * Test devpanel * Inject pageScript using new API * Keep connection from devpanel to background alive * Keep connection from content script to background alive * Replace page action with action * Cleanup syncOptions * Update options to not rely on background page access * Start work on updating popup * Updates * Remove window * Get opening in a separate window working * Remove pageScriptWrap * Add socket to panelStore * Fix tests * Try to use MV3 for Firefox * Fix path * Fix Chrome E2E tests * Revert unintentional change * Skip Electron tests for now Looks like they're still working through stuff in https://github.com/electron/electron/issues/41613 * Better image centering The Firefox popup did not like the old CSS. This is still not perfect, but it's better than it was. * Create shaggy-taxis-cross.md
19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
import { Action } from 'redux';
|
|
import type { PageScriptToContentScriptMessage } from './index';
|
|
|
|
export type Position = 'window' | 'remote';
|
|
|
|
function post<S, A extends Action<string>>(
|
|
message: PageScriptToContentScriptMessage<S, A>,
|
|
) {
|
|
window.postMessage(message, '*');
|
|
}
|
|
|
|
export default function openWindow(position?: Position) {
|
|
post({
|
|
source: '@devtools-page',
|
|
type: 'OPEN',
|
|
position: position ?? 'window',
|
|
});
|
|
}
|