From 3876499caefe8512bfcf7ce9e16c20fd10199c8b Mon Sep 17 00:00:00 2001
From: Thomas Steiner
Date: Mon, 27 Feb 2023 11:32:59 +0100
Subject: [PATCH] Fix iframe detection Fixes #138
---
demo/index.html | 16 +++++++++
demo/script.mjs | 4 +++
demo/style.css | 10 ++++++
package-lock.json | 91 ++++++++++++++++++++++++++++-------------------
package.json | 4 +--
src/supported.mjs | 5 +--
6 files changed, 89 insertions(+), 41 deletions(-)
diff --git a/demo/index.html b/demo/index.html
index c02e282..8d26300 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -44,5 +44,21 @@ Browser-FS-Access.js Demo
>.
+
+
In same-origin iframe
+
+ If above it says "Using the File System Access API", then it should say
+ so in the iframe.
+
+
+
In cross-origin iframe
+
+ Cross-origin iframes cannot use the File System Access API, so it uses
+ the fallback.
+
+
+