summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bedrock.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/bedrock.js b/bedrock.js
index 3db4372..7be6e4d 100644
--- a/bedrock.js
+++ b/bedrock.js
@@ -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;
}