Merge branch 'master' into v1
This commit is contained in:
commit
b57c3b546a
4 changed files with 20 additions and 5 deletions
15
CHANGELOG.md
15
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
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ module.exports = {
|
|||
return `<i class="fa fa-fw fa-${i}"></i>`
|
||||
},
|
||||
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))})
|
||||
},
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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'})
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue