misc: combining --read-only and --fullscreen now disables F11 on built-in client
This commit is contained in:
parent
98e5670011
commit
dc9f1435e3
4 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- bug fixes
|
||||
- file browser: drive listing failing on recent windows
|
||||
- root: `hideMenu` not working when `--read-only` is set
|
||||
- combining `--read-only` and `--fullscreen` now disables `F11` on built-in client
|
||||
|
||||
- widgets
|
||||
- add `onTouch` to all container widgets
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ window.PACKAGE = require('../../package.json')
|
|||
window.LOADING = null
|
||||
|
||||
window.READ_ONLY = window.READ_ONLY || false
|
||||
window.KIOSK = window.KIOSK || false
|
||||
window.GRIDWIDTH_CSS = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--grid-width'))
|
||||
window.GRIDWIDTH = GRIDWIDTH_CSS
|
||||
|
||||
|
|
|
|||
|
|
@ -210,6 +210,7 @@ var menuEntries = [
|
|||
},
|
||||
{
|
||||
label: locales('fullscreen'),
|
||||
disabled: KIOSK && navigator.userAgent.match(/OpenStageControl/), // built-in electron client only
|
||||
class: ()=>{return 'toggle ' + (fullscreen.isFullscreen ? 'on' : 'off')},
|
||||
action: ()=>{
|
||||
if (fullscreen.isEnabled) fullscreen.toggle()
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ function httpRoute(req, res) {
|
|||
window.IP=${JSON.stringify(ip)}
|
||||
window.ENV=${JSON.stringify(clientOptions)}
|
||||
window.READ_ONLY=${JSON.stringify(settings.read('read-only'))}
|
||||
window.KIOSK=${settings.read('read-only') && settings.read('fullscreen') ? 'true' : 'false'}
|
||||
window.AUTH=\`${(req.headers.authorization || '').replace('Basic ', '').replace('/', '_')}\`
|
||||
</script></body>`))
|
||||
.pipe(res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue