mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 19:42:29 +02:00
golf:
util.js ensures `WebAssembly`, `Notification`, and `FormData` are always declared, setting them false when not available
This commit is contained in:
parent
a080759a03
commit
34c32e3e89
3 changed files with 13 additions and 13 deletions
|
@ -7480,7 +7480,7 @@ var msel = (function () {
|
|||
|
||||
|
||||
(function () {
|
||||
if (!window.FormData)
|
||||
if (!FormData)
|
||||
return;
|
||||
|
||||
var form = QS('#op_new_md>form'),
|
||||
|
@ -7502,7 +7502,7 @@ var msel = (function () {
|
|||
|
||||
|
||||
(function () {
|
||||
if (!window.FormData)
|
||||
if (!FormData)
|
||||
return;
|
||||
|
||||
var form = QS('#op_mkdir>form'),
|
||||
|
@ -7696,7 +7696,7 @@ function show_md(md, name, div, url, depth) {
|
|||
if (depth) {
|
||||
clmod(div, 'raw', 1);
|
||||
div.textContent = "--[ " + name + " ]---------\r\n" + md;
|
||||
return toast.warn(10, errmsg + (window.WebAssembly ? 'failed to load marked.js' : 'your browser is too old'));
|
||||
return toast.warn(10, errmsg + (WebAssembly ? 'failed to load marked.js' : 'your browser is too old'));
|
||||
}
|
||||
|
||||
wfp_debounce.n--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue