Skip to content

Commit

Permalink
Fix overflow in UI and fix for Safari (#33)
Browse files Browse the repository at this point in the history
* Fix UI overflow if e.g.,bookmarks bar is visible. Fix for Safari.

Signed-off-by: Lukas Hejtmanek <xhejtman@gmail.com>

* Fix max-height

Signed-off-by: Lukas Hejtmanek <xhejtman@gmail.com>
  • Loading branch information
xhejtman authored Apr 30, 2022
1 parent 193651e commit 2f7b3fc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
29 changes: 16 additions & 13 deletions addons/gst-web/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,21 +618,24 @@ webrtc.onsystemstats = (stats) => {
if (stats.mem_used !== undefined) app.serverMemoryUsed = stats.mem_used;
}

navigator.permissions.query({
name: 'clipboard-read'
}).then(permissionStatus => {
// Will be 'granted', 'denied' or 'prompt':
if (permissionStatus.state === 'granted') {
app.clipboardStatus = 'enabled';
}

// Listen for changes to the permission state
permissionStatus.onchange = () => {
// Safari withou Permission-Api enabled fails here
if (navigator.permissions) {
navigator.permissions.query({
name: 'clipboard-read'
}).then(permissionStatus => {
// Will be 'granted', 'denied' or 'prompt':
if (permissionStatus.state === 'granted') {
app.clipboardStatus = 'enabled';
}
};
});

// Listen for changes to the permission state
permissionStatus.onchange = () => {
if (permissionStatus.state === 'granted') {
app.clipboardStatus = 'enabled';
}
};
});
}

// Check if editing is allowed.
var checkPublishing = () => {
Expand Down Expand Up @@ -674,4 +677,4 @@ fetch("/turn/")
}
webrtc.rtcPeerConfig = config;
webrtc.connect();
});
});
7 changes: 4 additions & 3 deletions addons/gst-web/src/css/vuetify.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f7b3fc

Please sign in to comment.