Version 1.2.1 (see README for changelog)

This commit is contained in:
dab 2025-12-06 17:20:26 +00:00
parent 8621dfaba9
commit d7f9ba5156
3 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ bun run your-app-entrypoint.js
## changelog ## changelog
- **Version 1.2.1**
- bugfix: check for `window` without causing error
- **Version 1.2.0** - **Version 1.2.0**
- modified `frontend/index.js` such that script can now be used in SharedWorker and HTTPS contexts - modified `frontend/index.js` such that script can now be used in SharedWorker and HTTPS contexts
- **Version 1.1.0** - **Version 1.1.0**

View file

@ -34,7 +34,7 @@ class FramerockUtils {
console.debug('SETUP TRANSPORT') console.debug('SETUP TRANSPORT')
const ctx_location = window ? window.location : self.location const ctx_location = (typeof window !== "undefined") ? window.location : self.location
const ws_protocol = ctx_location.protocol === 'http:' ? 'ws:' : 'wss:' const ws_protocol = ctx_location.protocol === 'http:' ? 'ws:' : 'wss:'
this._ws = new WebSocket(`${ws_protocol}//${ctx_location.host}/ws`) this._ws = new WebSocket(`${ws_protocol}//${ctx_location.host}/ws`)

View file

@ -1,6 +1,6 @@
{ {
"name": "framerock", "name": "framerock",
"version": "1.2.0", "version": "1.2.1",
"type": "module", "type": "module",
"main": "backend/index.js" "main": "backend/index.js"
} }