Skip to content

Commit 5a9c27b

Browse files
committed
simplified slightly
1 parent bade7d1 commit 5a9c27b

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var try_hook = function(hook_name, args) {
9191

9292

9393
function requestSync() {
94-
if (enableTogetherJS && TogetherJS.running) {
94+
if (TogetherJS.running) {
9595
nowSyncing = true;
9696
TogetherJS.send({type: "requestSync"});
9797
}
@@ -399,12 +399,10 @@ $(document).ready(function() {
399399
appMode = $.bbq.getState('mode'); // assign this to the GLOBAL appMode
400400
updateAppDisplay();
401401

402-
if (enableTogetherJS) {
403-
if (TogetherJS.running &&
404-
!hashchangeSignalFromRemote /* don't double send */) {
405-
console.log("TogetherJS SEND hashchange", appMode);
406-
TogetherJS.send({type: "hashchange", appMode: appMode});
407-
}
402+
if (TogetherJS.running &&
403+
!hashchangeSignalFromRemote /* don't double send */) {
404+
console.log("TogetherJS SEND hashchange", appMode);
405+
TogetherJS.send({type: "hashchange", appMode: appMode});
408406
}
409407
});
410408

0 commit comments

Comments
 (0)