Initial Commit

🎉
* Adds Manifest for Extension
* Adds barebone messaging from extension and front-end
* Adds .env to run react app under CSP
This commit is contained in:
Indrajith K L
2019-07-12 19:59:42 +05:30
parent 481bbb5a22
commit fa8316a94c
11 changed files with 190 additions and 94 deletions

27
public/content_script.js Normal file
View File

@@ -0,0 +1,27 @@
(function(){
/* Open port on popup file */
const port = chrome.runtime.connect({
name: "bookmarkArranger"
});
/* Listen for messages on the port */
port.onMessage.addListener(message => {
console.log(message)
});
document.getElementById('sendMessage').addEventListener('click', ()=>{
/* Send a message through the port */
port.postMessage({
code: "getBookMarks"
});
})
})();