From 0608430e802d3e53d22c518d874afdc69e9deff7 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Sat, 28 Nov 2020 12:22:22 +0100 Subject: [PATCH] Add a link to the remote asset in asset viewer The link will be present if and only if the content of the currently viewed asset has been fetched from a remote location. Co-authored-by: gorhill <585534+gorhill@users.noreply.github.com> --- src/1p-filters.html | 2 ++ src/asset-viewer.html | 2 ++ src/css/codemirror.css | 17 ++++++++++++-- src/js/asset-viewer.js | 7 +++++- src/js/assets.js | 45 +++++++++++++++++++++++-------------- src/js/codemirror/search.js | 44 +++++++++++++++++++++--------------- src/js/messaging.js | 6 ++++- src/whitelist.html | 2 ++ 8 files changed, 86 insertions(+), 39 deletions(-) diff --git a/src/1p-filters.html b/src/1p-filters.html index db34e4baa..27a2c81d9 100644 --- a/src/1p-filters.html +++ b/src/1p-filters.html @@ -10,6 +10,7 @@ + @@ -45,6 +46,7 @@ + diff --git a/src/asset-viewer.html b/src/asset-viewer.html index 335116ae1..6975d722b 100644 --- a/src/asset-viewer.html +++ b/src/asset-viewer.html @@ -9,6 +9,7 @@ +