Skip to content

Commit

Permalink
Merge pull request #74 from Psychedelic/fix/remove-content
Browse files Browse the repository at this point in the history
Fix/remove content
  • Loading branch information
rocky-fleek authored Jul 8, 2021
2 parents dd3b207 + 5c1013a commit f07096b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions source/ContentScript/index.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { ProxyRPC } from '@fleekhq/browser-rpc';
// import { ProxyRPC } from '@fleekhq/browser-rpc';

// import { injectScript } from './utils';
// // import { injectScript } from './utils';

const serverRPC = new ProxyRPC(window, {
name: 'plug-content-script',
target: 'plug-inpage-provider',
});
// const serverRPC = new ProxyRPC(window, {
// name: 'plug-content-script',
// target: 'plug-inpage-provider',
// });

serverRPC.exposeHandler('test', (props, name) => {
const { callback } = props;
const result = `hello ${name}!!!`;
callback(null, result);
});
// serverRPC.exposeHandler('test', (props, name) => {
// const { callback } = props;
// const result = `hello ${name}!!!`;
// callback(null, result);
// });

serverRPC.start();
// serverRPC.start();

// injectScript(null, INPAGE_SCRIPT);
// // injectScript(null, INPAGE_SCRIPT);

/* eslint-disable no-console */
console.log('helloworld from content script');
// /* eslint-disable no-console */
// console.log('helloworld from content script');

export {};

0 comments on commit f07096b

Please sign in to comment.