Skip to content

Commit

Permalink
solved issue: #28 #27 #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Flouwrian committed Feb 2, 2024
1 parent fcba56c commit cb11f11
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/contentScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import { PiralDebugApiMessage, PiralInspectorMessage } from './types';
* window is marked as @deprecated in v3 but is still the official way to access external applications
* https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts?hl=en#host-page-communication
*/



const handleMessage = (message: PiralDebugApiMessage) => {
if (typeof message === 'object' && message?.source === 'piral-debug-api') {
const { content } = message;
Expand Down Expand Up @@ -47,9 +44,6 @@ runtime.onMessage.addListener((content, sender) => {
version: 'v1',
};
window.postMessage(message, '*');

//@todo check if somehow inline script can work in v3
//handleLegacyMessage(content);
});

/**
Expand Down

0 comments on commit cb11f11

Please sign in to comment.