xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/.profile.js

16 lines
387 B
JavaScript
Raw Normal View History

2024-09-15 11:18:36 +02:00
#!/bin/js
if( !window['~/.profile.js'] ){ // do once (remember /etc/profile gets sources multiple times!)
const isoterminal = document.querySelector('[isoterminal]').components.isoterminal.isoterminal
const scene = document.querySelector('a-scene')
window.helloworld = function(){
alert("hello world")
return "hello world"
}
window['~/.profile.js'] = true
}