xash93d/view/launcher.js
2022-10-28 02:48:42 -06:00

12 lines
344 B
JavaScript

// Load the trame and save it's url to the appropriate
// css variable
//
// Gross we have to do it this way but it's whatever
app.bundle.open('./half-trame.png', 'URL')
.then(url => document.querySelector(':root').style.setProperty('--xash-trame', `url(${url})`) )
{
const modList = document.getElementById('mods')
console.log(app)
}