From 0405422a4ce534fce9563ad4a5415a3203320b71 Mon Sep 17 00:00:00 2001 From: Marvin Zurborg <106014757+Sommerwiesel@users.noreply.github.com> Date: Mon, 6 May 2024 08:07:02 +0000 Subject: [PATCH] Rephrase the WebAssembly error on unsupported browser Rephrase the WebAssembly error on unsupported browser --- js/privatebin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index bafce876..0f9096d9 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1068,7 +1068,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { if (mode === 'zlib' || mode === 'none') { if (mode === 'zlib') { if (typeof zlib === 'undefined') { - throw 'Error decompressing paste, due to missing WebAssembly support.' + throw 'Error decompressing paste, your browser does not support WebAssembly. Please use another browser to view this paste.' } data = zlib.inflate( new Uint8Array(data) @@ -1305,7 +1305,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { spec[1] = atob(spec[1]); if (spec[7] === 'zlib') { if (typeof zlib === 'undefined') { - throw 'Error decompressing paste, due to missing WebAssembly support.' + throw 'Error decompressing paste, your browser does not support WebAssembly. Please use another browser to view this paste.' } } try {