Skip to content

Commit

Permalink
noVNC: don't use removed files
Browse files Browse the repository at this point in the history
noVNC dropped support for IE in commit
novnc/noVNC@890cff9
As a result, the promise.js file was removed, and should not be
referenced anymore from our code.

EL8 and EL9 already ship without promise.js file.

Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
  • Loading branch information
dupondje authored and sandrobonazzola committed Jul 12, 2023
1 parent 193cfcc commit 07e865d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions backend/manager/modules/services/src/main/webapp/novnc-main.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,6 @@
</style>

<!-- Promise polyfill for IE11 -->
<script src="files/novnc/vendor/promise.js"></script>

<!-- ES2015/ES6 modules polyfill -->
<script type="module">
window._noVNC_has_module_support = true;
</script>
<script>
window.addEventListener("load", function() {
if (window._noVNC_has_module_support) return;
const loader = document.createElement("script");
loader.src = "files/novnc/vendor/browser-es-module-loader/dist/" +
"browser-es-module-loader.js";
document.head.appendChild(loader);
});
</script>

<!-- actual script modules -->
<script type="module" crossorigin="anonymous">
// RFB holds the API to connect and communicate with a VNC server
Expand Down

0 comments on commit 07e865d

Please sign in to comment.