From 322abdcb43627324485fbccd7cfc16818ae93a3e Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 16 May 2021 05:04:44 +0200 Subject: [PATCH] more dino support --- README.md | 3 ++- copyparty/web/up2k.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39dced2d..9f99b121 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ turn your phone or raspi into a portable file server with resumable uploads/downloads using IE6 or any other browser * server runs on anything with `py2.7` or `py3.3+` -* *resumable* uploads need `firefox 12+` / `chrome 6+` / `safari 6+` / `IE 10+` +* browse/upload with `IE4` / `netscape 4` on `win3.11` (heh) +* *resumable* uploads need `firefox 34+` / `chrome 37+` / `safari 7+` * code standard: `black` 📷 screenshots: [browser](#the-browser) // [upload](#uploading) // [md-viewer](#markdown-viewer) // [search](#searching) // [fsearch](#file-search) // [zip-DL](#zip-downloads) // [ie4](#browser-support) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 65625fa3..97b29289 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -423,7 +423,7 @@ function up2k_init(subtle) { is_https = (window.location + '').indexOf('https:') === 0; if (is_https) - // chrome<37 firefox<34 edge<12 ie<11 opera<24 safari<10.1 + // chrome<37 firefox<34 edge<12 opera<24 safari<7 shame = 'your browser is impressively ancient'; // upload ui hidden by default, clicking the header shows it @@ -440,8 +440,8 @@ function up2k_init(subtle) { } // show uploader if the user only has write-access - var perms = (document.body.getAttribute('perms') + '').split(' '); - if (!has(perms, 'read')) + var perms = document.body.getAttribute('perms'); + if (perms && !has(perms.split(' '), 'read')) goto('up2k'); // shows or clears a message in the basic uploader ui