summaryrefslogtreecommitdiff
path: root/share/web_surfaces/builtin/transport/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/web_surfaces/builtin/transport/main.js')
-rw-r--r--share/web_surfaces/builtin/transport/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/web_surfaces/builtin/transport/main.js b/share/web_surfaces/builtin/transport/main.js
index fcfff6c561..a4e36a6d0c 100644
--- a/share/web_surfaces/builtin/transport/main.js
+++ b/share/web_surfaces/builtin/transport/main.js
@@ -28,13 +28,13 @@ import { ArdourClient } from '/shared/ardour.js';
fullscreen: document.getElementById('fullscreen')
};
- const ardour = new ArdourClient(location.host);
+ const ardour = new ArdourClient();
let _rolling = false;
let _record = false;
function main () {
- addDomEventListeners ();
+ addDomEventListeners();
ardour.addCallbacks({
onError: console.log,
@@ -51,15 +51,15 @@ import { ArdourClient } from '/shared/ardour.js';
const touchOrClick = ('ontouchstart' in document.documentElement) ? 'touchstart' : 'click';
const roll = () => {
- setRolling (!_rolling);
- ardour.setTransportRoll (_rolling);
+ setRolling(!_rolling);
+ ardour.setTransportRoll(_rolling);
};
dom.roll.addEventListener(touchOrClick, roll);
const record = () => {
- setRecord (!_record);
- ardour.setRecordState (_record);
+ setRecord(!_record);
+ ardour.setRecordState(_record);
};
dom.record.addEventListener(touchOrClick, record);