forked from kasmtech/noVNC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
41,585 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ | ||
|
||
/***/ 528: | ||
/***/ (function(module, exports) { | ||
|
||
/* | ||
* noVNC: HTML5 VNC client | ||
* Copyright (C) 2019 The noVNC Authors | ||
* Licensed under MPL 2.0 (see LICENSE.txt) | ||
* | ||
* See README.md for usage and integration instructions. | ||
*/ | ||
|
||
// NB: this should *not* be included as a module until we have | ||
// native support in the browsers, so that our error handler | ||
// can catch script-loading errors. | ||
|
||
// No ES6 can be used in this file since it's used for the translation | ||
/* eslint-disable prefer-arrow-callback */ | ||
|
||
(function _scope() { | ||
"use strict"; | ||
|
||
// Fallback for all uncaught errors | ||
function handleError(event, err) { | ||
try { | ||
var msg = document.getElementById('noVNC_fallback_errormsg'); | ||
|
||
// Only show the initial error | ||
if (msg.hasChildNodes()) { | ||
return false; | ||
} | ||
|
||
// Skip allowed errors | ||
var allowedErrors = ["The user has exited the lock before this request was completed."]; | ||
if (event.message && allowedErrors.includes(event.message)) { | ||
return false; | ||
} | ||
return location.reload(); | ||
var div = document.createElement("div"); | ||
div.classList.add('noVNC_message'); | ||
div.appendChild(document.createTextNode(event.message)); | ||
msg.appendChild(div); | ||
if (event.filename) { | ||
div = document.createElement("div"); | ||
div.className = 'noVNC_location'; | ||
var text = event.filename; | ||
if (event.lineno !== undefined) { | ||
text += ":" + event.lineno; | ||
if (event.colno !== undefined) { | ||
text += ":" + event.colno; | ||
} | ||
} | ||
div.appendChild(document.createTextNode(text)); | ||
msg.appendChild(div); | ||
} | ||
if (err && err.stack) { | ||
div = document.createElement("div"); | ||
div.className = 'noVNC_stack'; | ||
div.appendChild(document.createTextNode(err.stack)); | ||
msg.appendChild(div); | ||
} | ||
document.getElementById('noVNC_fallback_error').classList.add("noVNC_open"); | ||
} catch (exc) { | ||
document.write("Kasm encountered an error."); | ||
} | ||
// Don't return true since this would prevent the error | ||
// from being printed to the browser console. | ||
return false; | ||
} | ||
window.addEventListener('error', function onerror(evt) { | ||
handleError(evt, evt.error); | ||
}); | ||
window.addEventListener('unhandledrejection', function onreject(evt) { | ||
handleError(evt.reason, evt.reason); | ||
}); | ||
})(); | ||
|
||
/***/ }) | ||
|
||
},[[528,0]]]); |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.