- const audioElement = document.createElement('audio');
- audioElement.src = source;
- audioElement.autoplay = 'autoplay';
- audioElement.type = type;
- document.querySelector('body').appendChild(audioElement);
+ internals.getRoot().browserAction.disable();
+ const activeTabs = await internals.getActiveTabs();
+ const execution = await internals.getRoot().tabs.executeScript(activeTabs[0].id, {
+ file: '/content_script.js'
+ });
+
+ if (!execution[0]) {
+ internals.onDisconnect();
+ }
+ },
+
+ hangUp() {
+
+ internals.getRoot().browserAction.disable();
+ internals.port.postMessage({
+ action: 'hangUp'
+ });