diff options
Diffstat (limited to 'common/broadcast.js')
-rw-r--r-- | common/broadcast.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/broadcast.js b/common/broadcast.js index ce4ac08..4dcac2b 100644 --- a/common/broadcast.js +++ b/common/broadcast.js @@ -41,14 +41,12 @@ * 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 connect_to_background function sender_connection() { return { - port: connect_to_background(CONNECTION_TYPE.BROADCAST_SEND) + port: connect_to_background("broadcast_send") }; } #EXPORT sender_connection @@ -94,7 +92,7 @@ function flush(sender_conn) function listener_connection(cb) { const conn = { - port: connect_to_background(CONNECTION_TYPE.BROADCAST_LISTEN) + port: connect_to_background("broadcast_listen") }; conn.port.onMessage.addListener(cb); |