From 0b51419ca4eecfbdaef3d171a8f6278e14f64858 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 16 Aug 2019 11:18:45 +0200 Subject: [PATCH] Use "nomodule" instead of manual check Very few browsers are left in the wild that supports modules but not "nomodule", so let's simplify our handling a bit. Safari 10 supports modules but not 'nomodule', this means that this particular version of Safari will be broken. Due to this we have to bump up the required Safari version to 11. --- README.md | 2 +- utils/use_require.js | 24 ++++-------------------- vnc.html | 12 +----------- vnc_lite.html | 13 +------------ 4 files changed, 7 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index bd34266c..68759429 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ noVNC uses many modern web technologies so a formal requirement list is not available. However these are the minimum versions we are currently aware of: -* Chrome 49, Firefox 44, Safari 10, Opera 36, IE 11, Edge 12 +* Chrome 49, Firefox 44, Safari 11, Opera 36, IE 11, Edge 12 ### Server Requirements diff --git a/utils/use_require.js b/utils/use_require.js index 24879271..d6e8d6a5 100755 --- a/utils/use_require.js +++ b/utils/use_require.js @@ -105,27 +105,11 @@ function transform_html(legacy_scripts, only_legacy) { new_script += ` \n`; } } else { - // Otherwise detect if it's a modern browser and select - // variant accordingly - new_script += `\ - \n\ - \n`; - - // Original, ES6 modules + // Otherwise include both modules and legacy fallbacks new_script += ' \n'; + for (let i = 0;i < legacy_scripts.length;i++) { + new_script += ' \n'; + } } contents = contents.slice(0, start_ind) + `${new_script}\n` + contents.slice(end_ind); diff --git a/vnc.html b/vnc.html index b98bb6f3..3183a3d1 100644 --- a/vnc.html +++ b/vnc.html @@ -57,17 +57,7 @@ - - + diff --git a/vnc_lite.html b/vnc_lite.html index 426d79b3..adc6abd2 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -61,18 +61,7 @@ - - +