mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 21:27:48 -05:00
Adjust script
This commit is contained in:
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() {
|
||||
|
||||
Reference in New Issue
Block a user