caffeine
caffeine copied to clipboard
Examples not working
When I open tabulator or other examples I mostly these error windows:
https://caffeine.js.org/tabulator/
Also when I try to follow instructions in the comment section of https://caffeine.js.org/developer/ and execute in console
fetch('https://caffeine.js.org/js/squeakjs/tether/handler.js')
.then((handlerSourceResult) => {handlerSourceResult.text()
.then((handlerSource) => {
fetch('https://caffeine.js.org/developer/js/squeakjs/squeak-worker.js')
.then((virtualMachineSourceResult) => {virtualMachineSourceResult.text()
.then((virtualMachineSource) => {
window.caffeineWorker = new Worker(URL.createObjectURL(new Blob([virtualMachineSource])))
window.caffeineWorker.onmessage = (new Function(handlerSource))()
window.caffeineWorker.postMessage('start')})})})})
It throws an error because these files are not found:
VM225:1
GET https://caffeine.js.org/js/squeakjs/tether/handler.js 404 (Not Found)
(anonymous) @ VM225:1
VM225:4
GET https://caffeine.js.org/developer/js/squeakjs/squeak-worker.js 404 (Not Found)
(anonymous) @ VM225:4
Promise.then (async)
(anonymous) @ VM225:3
Promise.then (async)
(anonymous) @ VM225:2
VM227:3 Uncaught (in promise) SyntaxError: Unexpected token '<'
at new Function (<anonymous>)
at <anonymous>:9:64
Thanks for the bug report. This one is fixed in the next release, which I expect to get to in the next couple of weeks.