I wanna call chrome.runtime.onMessage in dom-hook.js but it is undefined.
I use dom-hook.js because i wanna use Import package in ES6
Any way to do this?
Thanks in advance
Or how to use import in content-script.js, content-hook.js
I can use import in content-hook.js.