]> git.proxmox.com Git - mirror_novnc.git/blobdiff - app/error-handler.js
Use fat arrow functions `const foo = () => { ... };` for callbacks
[mirror_novnc.git] / app / error-handler.js
index d81334980fe30e69134818ea46dd07926a19974d..96dc9261ef081b4e7e3c184f85c649289e2f8817 100644 (file)
@@ -2,7 +2,10 @@
 // native support in the browsers, so that our error handler
 // can catch script-loading errors.
 
-(function(){
+// No ES6 can be used in this file since it's used for the translation
+/* eslint-disable prefer-arrow-callback */
+
+(function() {
     "use strict";
 
     // Fallback for all uncought errors