aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/background.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/extension/background.js b/extension/background.js
index 6653edd..0bf5808 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -5,6 +5,7 @@ const unix = {
EINTR: 4,
EIO: 5,
ENXIO: 6,
+ ENOTSUP: 45,
// Unix file types
S_IFMT: 0170000, // type of file mask
@@ -118,6 +119,8 @@ const router = {
const tabId = parseInt(pathComponent(path, -3));
const suffix = pathComponent(path, -1);
+ if (suffix.startsWith("._")) throw new UnixError(unix.ENOTSUP);
+
if (!debugged[tabId]) throw new UnixError(unix.EIO);
await sendDebuggerCommand(tabId, "Page.enable", {});