Commit 0a439995 authored by mntmn's avatar mntmn Committed by mntmn
Browse files

when space is embedded (?embedded=1), toggle fullscreen via present button

parent f6cfef89
...@@ -100,13 +100,13 @@ var SpacedeckSpaces = { ...@@ -100,13 +100,13 @@ var SpacedeckSpaces = {
}, },
load_space: function(space_id, on_success, on_error) { load_space: function(space_id, on_success, on_error) {
console.log("load space: ", space_id);
this.folder_spaces_filter=""; this.folder_spaces_filter="";
this.folder_spaces_search=""; this.folder_spaces_search="";
space_auth = get_query_param("spaceAuth"); space_auth = get_query_param("spaceAuth");
this.embedded = !!(get_query_param("embedded"));
var userReady = function() { var userReady = function() {
this.close_dropdown(); this.close_dropdown();
...@@ -649,6 +649,13 @@ var SpacedeckSpaces = { ...@@ -649,6 +649,13 @@ var SpacedeckSpaces = {
this.present_mode = !this.present_mode; this.present_mode = !this.present_mode;
if (this.present_mode) { if (this.present_mode) {
//this.go_to_first_zone(); //this.go_to_first_zone();
if (this.embedded) {
document.documentElement.requestFullscreen();
}
} else {
if (this.embedded) {
document.exitFullscreen();
}
} }
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment