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

16 lines
387 B
JavaScript

#!/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
}