From ad51748dfcb52cb08b5c6113ba1c5b4fa14432ca Mon Sep 17 00:00:00 2001 From: Craig Latta Date: Tue, 12 Nov 2024 10:28:56 -0800 Subject: [PATCH] configure bridge.ts for production for publishing --- deno/bridge.ts | 14 +++++++------- js/squeakjs/vm.js | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/deno/bridge.ts b/deno/bridge.ts index 51345d2..782b847 100644 --- a/deno/bridge.ts +++ b/deno/bridge.ts @@ -1,10 +1,10 @@ import {serve} from "https://deno.land/std/http/mod.ts" // Uncomment the following line for production. -// try {const tether = await import("https://caffeine.js.org/deno/tether.js")} +try {const tether = await import("https://caffeine.js.org/deno/tether.js")} // Uncomment the following line for development. -try {const tether = await import("./tether.js")} +// try {const tether = await import("./tether.js")} catch(e) {console.log('=== '+e.message)} import {delay} from "https://deno.land/std/async/mod.ts" @@ -13,10 +13,10 @@ caffeine.worker = ( new Worker( new URL( // Uncomment the following line for production. - // "https://caffeine.js.org/deno/squeak-worker.js", + "https://caffeine.js.org/deno/squeak-worker.js", // Uncomment the following line for development. - "./squeak-worker.js", +// "./squeak-worker.js", import.meta.url).href, {type: "module"})) @@ -77,12 +77,12 @@ caffeine.worker.postMessage(JSON.stringify({ imageName: 'caffeine', appName: 'caffeine', // Uncomment the following line for production. - // proxy: 'https://caffeine.js.org/', + proxy: 'https://caffeine.js.org/', // Uncomment the following line for development. You'll need to // check out the Caffeine repository from GitHub, and serve it with // a local webserver, so that http://localhost/memories has the // memory ZIPs. - proxy: 'http://192.168.1.66:8080/', -// proxy: 'http://localhost:8080/', +// proxy: 'http://192.168.1.66:8080/', + proxy: 'http://localhost:8080/', parameters: {fibbly: 'wibbly'}})) diff --git a/js/squeakjs/vm.js b/js/squeakjs/vm.js index 3479a65..9f13377 100755 --- a/js/squeakjs/vm.js +++ b/js/squeakjs/vm.js @@ -448,6 +448,7 @@ module('users.bert.SqueakJS.vm').requires().toRun(function() { if (typeof SqueakDBFake == "undefined") { if (typeof indexedDB == "undefined") console.warn("IndexedDB not supported by this browser, using localStorage"); + self.SqueakDBFake = { bigFiles: {}, bigFileThreshold: 100000,