summaryrefslogtreecommitdiff
path: root/background/broadcast_broker.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-01-29 00:03:51 +0100
committerWojtek Kosior <koszko@koszko.org>2022-01-29 00:04:44 +0100
commit4c6a2323d90e9321ec2b78e226167b3013ea69ab (patch)
tree682ab3abd53a68d28d04f0470766699dcadd7294 /background/broadcast_broker.js
parentea9df6c7688613783ca114f0f11c6f6baf30036b (diff)
downloadbrowser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.tar.gz
browser-extension-4c6a2323d90e9321ec2b78e226167b3013ea69ab.zip
make Haketilo buildable again (for Mozilla)
How cool it is to throw away 5755 lines of code...
Diffstat (limited to 'background/broadcast_broker.js')
-rw-r--r--background/broadcast_broker.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/background/broadcast_broker.js b/background/broadcast_broker.js
index 79a1bb7..d8a0e28 100644
--- a/background/broadcast_broker.js
+++ b/background/broadcast_broker.js
@@ -42,8 +42,6 @@
* proprietary program, I am not going to enforce this in court.
*/
-#IMPORT common/connection_types.js AS CONNECTION_TYPE
-
#FROM common/message_server.js IMPORT listen_for_connection
let next_id = 1;
@@ -169,8 +167,7 @@ function remove_broadcast_sender(sender_ctx)
function start()
{
- listen_for_connection(CONNECTION_TYPE.BROADCAST_SEND, new_broadcast_sender);
- listen_for_connection(CONNECTION_TYPE.BROADCAST_LISTEN,
- new_broadcast_listener);
+ listen_for_connection("broadcast_send", new_broadcast_sender);
+ listen_for_connection("broadcast_listen", new_broadcast_listener);
}
#EXPORT start