Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
utilisation du viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Dec 11, 2023
1 parent 49f33c7 commit 6deb2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@
console.log(response);
hideLoadingModal();
var vncUrl = response.url;
window.open(vncUrl, '_blank');
//window.open(vncUrl, '_blank');
window.location = "/viewer?vncUrl=" + encodeURIComponent(vncUrl);
//location.href = vncUrl;
},
error: function (error) {
Expand Down
2 changes: 1 addition & 1 deletion templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% block content %}

<!-- Add HTML elements for the VNC viewer here -->
<div id="vncViewerContainer"></div>
<div id="vncViewerContainer" style="height:80vh"></div>

<script>
document.addEventListener("DOMContentLoaded", function () {
Expand Down

0 comments on commit 6deb2b3

Please sign in to comment.