mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-21 10:11:23 -05:00
Adjust script
This commit is contained in:
parent
59f5c6d0c6
commit
7b5ce84ffe
20
app/root.tsx
20
app/root.tsx
|
|
@ -349,15 +349,17 @@ function PlaywireScripts() {
|
|||
__html: `
|
||||
var pwUnits = ${JSON.stringify(units)}
|
||||
|
||||
var init = function () {
|
||||
ramp
|
||||
.addUnits(pwUnits)
|
||||
.then(() => {
|
||||
ramp.displayUnits()
|
||||
}).catch((e) =>{
|
||||
ramp.displayUnits()
|
||||
console.log(e)
|
||||
})
|
||||
var init = function () {
|
||||
ramp.destroyUnits('all').then(() => {
|
||||
ramp
|
||||
.addUnits(pwUnits)
|
||||
.then(() => {
|
||||
ramp.displayUnits()
|
||||
}).catch((e) =>{
|
||||
ramp.displayUnits()
|
||||
console.log(e)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
ramp.onReady = function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user