Rephrase the WebAssembly error on unsupported browser

Rephrase the WebAssembly error on unsupported browser
This commit is contained in:
Marvin Zurborg 2024-05-06 08:07:02 +00:00 committed by GitHub
parent 28f3e544b8
commit 0405422a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {