diff --git a/web/overlay/index.js b/web/overlay/index.js index 746de08..899fcd5 100644 --- a/web/overlay/index.js +++ b/web/overlay/index.js @@ -1,6 +1,4 @@ $(function () { - const webSocket = window.socket, - queryMap = getQueryMap(); const getQueryMap = () => { let queryString = window.location.search, @@ -41,7 +39,9 @@ $(function () { } }; + const webSocket = window.socket, + queryMap = getQueryMap(); + socket.addFamilyHandler("overlay", handleSocketMessage); - }); \ No newline at end of file