Send message not working: content-script <---> dom (Manifest v3) #12947
-
I tried new version of Quasar CLI BEX using manifest v3. It looks like that connection between content-script and dom has broken. Working fine with older version of Quasar webpack and BEX manifest v2. Please find my codes below to test dom.js: console.log('dom file')
export default function (bridge) {
console.log('attach dom bridge')
bridge.on('test', d => {
console.log('test from content', d.data)
})
console.log('send dom ready')
bridge.send('dom-ready', { dom: true })
} my-content-script.js console.log('content file')
export default function (bridge) {
console.log('attach content')
setInterval(async () => {
console.log('send test to dom');
await bridge.send('test', { test: true });
}, 5000);
bridge.on('dom-ready', (event) => {
console.log('content dom-ready', event.data);
})
} No message received on both side. Is there anything I missed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Updates: Working with older version quasar/webpack:
With newest version, doesn't work:
|
Beta Was this translation helpful? Give feedback.
-
Can confirm the issue. Created a ticket: #12974 |
Beta Was this translation helpful? Give feedback.
Can confirm the issue. Created a ticket: #12974
Please follow the resolution there.