diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c22e56..659de7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog (v0) +## 0.49.10 + +- bug fixes + - svg files not loading + - canvas glitches when hardware acceleration is disabled (--disable-gpu) (built-in gui only) + +- misc + - prevent `--disable-gpu` from bypassing the launcher window + - prevent converting `"^icon-name"` to an icon (in text widgets and labels) when `icon-name` is too short to be a valid icon name (minimum 4 characters) + +## 0.49.9 + +- bug fixes + - downgrade electron engine to fix regression (v0.49.8) on some systems + ## 0.49.8 - bug fixes diff --git a/src/client/ui/utils.js b/src/client/ui/utils.js index 362f0e23..1bf988f9 100644 --- a/src/client/ui/utils.js +++ b/src/client/ui/utils.js @@ -6,7 +6,7 @@ module.exports = { return `` }, iconify:function(string){ - return String(string).replace(/\^[^\s]*/g,(x)=>{return module.exports.icon(x.substring(1))}) + return String(string).replace(/\^[^\s]{4,}/g,(x)=>{return module.exports.icon(x.substring(1))}) }, diff --git a/src/server/electron-window.js b/src/server/electron-window.js index 63aad197..1b54447a 100644 --- a/src/server/electron-window.js +++ b/src/server/electron-window.js @@ -30,7 +30,7 @@ module.exports = function(options={}) { window.once('ready-to-show', ()=>{ window.show() }) - + window.webContents.once('page-title-updated', ()=>{ if (options.fullscreen) { window.webContents.sendInputEvent({keyCode: 'F11', type: 'keyDown'}) diff --git a/src/server/server.js b/src/server/server.js index 522a5db2..1c6c6d67 100644 --- a/src/server/server.js +++ b/src/server/server.js @@ -58,15 +58,15 @@ function httpRoute(req, res) { url = url.replace('_:_', ':') // escaped drive colon url = url.replace(/^\/([^/]*:)/, '$1') // strip leading slash - if (url.match(/.(jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico|ttf|otf|woff|woff2|html|css|js)(\?[0-9]*)?$/i)) { + if (url.match(/.(svg|jpg|jpeg|png|apng|gif|webp|tiff|xbm|bmp|ico|ttf|otf|woff|woff2|html|css|js)(\?[0-9]*)?$/i)) { try { - // relative resolution (session path) + // relative resolution (to session path) var id = urlparser.parse('?' + req.headers.cookie, true).query.client_id, sessionPath = path.dirname(ipc.clients[id].sessionPath) res.sendFile(path.resolve(sessionPath + url)) } catch(e) { - // absolute resolution (session path) + // absolute resolution res.sendFile(path.resolve(url)) } } else if (url.includes('/osc-ping')) {