Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index bc4fd8f..bb299be 100644
--- a/src/index.js
+++ b/src/index.js
@@ -210,7 +210,7 @@ document.querySelector('#roll-dice').addEventListener('click', () => {
document.querySelectorAll('[name="select-elevation"]').forEach(el => {
el.addEventListener('change', function (e) {
- document.querySelector('object').contentDocument.querySelector('.grid').dataset.viewElevation = this.value;
+ document.querySelector('object').contentDocument.querySelector('.gameboard').dataset.viewElevation = this.value;
});
});