caffeine icon indicating copy to clipboard operation
caffeine copied to clipboard

Examples not working

Open 7flash opened this issue 7 months ago • 1 comments

When I open tabulator or other examples I mostly these error windows:

https://caffeine.js.org/tabulator/

image image

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

7flash avatar Dec 05 '23 09:12 7flash

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.

ccrraaiigg avatar Dec 28 '23 16:12 ccrraaiigg