hooking up loading, flow, audio
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
AFRAME.registerComponent('console-shortcuts', {
|
||||
play: function() {
|
||||
play: function () {
|
||||
window.$ = val => document.querySelector(val);
|
||||
window.$$ = val => document.querySelectorAll(val);
|
||||
window.$$$ = val => document.querySelector(`[${val}]`).getAttribute(val);
|
||||
window.$$$$ = val => document.querySelector(`[${val}]`).components[val];
|
||||
window.scene = this.el;
|
||||
window.state = this.el.systems.state.state;
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user