diff options
Diffstat (limited to 'bedrock.js')
-rw-r--r-- | bedrock.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -91,6 +91,7 @@ function upgradeToEmulator(element) { let options = { scale, controls: 'controls' in attr, + nocursor: 'nocursor' in attr, autoplay: true, }; let url = URL.parse(attr.src.value, window.location.href); @@ -540,6 +541,7 @@ function EmulatorElement(options) { if (options && !options.controls) emulator.hideMenuBar(); if (options && options.autoplay) emulator.runProgram(); + if (options && options.nocursor) canvas.style.cursor = 'none'; return emulator; } |