Skip to content

Commit 8919dd6

Browse files
authored
chore: sync extension files from sentience-chrome v2.0.2
1 parent 0b4ff3e commit 8919dd6

File tree

5 files changed

+546
-62
lines changed

5 files changed

+546
-62
lines changed

sentience/extension/content.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// content.js - ISOLATED WORLD (Bridge between Main World and Background)
22
console.log('[Sentience Bridge] Loaded.');
33

4+
// Detect if we're in a child frame (for iframe support)
5+
const isChildFrame = window !== window.top;
6+
if (isChildFrame) {
7+
console.log('[Sentience Bridge] Running in child frame:', window.location.href);
8+
}
9+
410
// 1. Pass Extension ID to Main World (So API knows where to find resources)
511
document.documentElement.dataset.sentienceExtensionId = chrome.runtime.id;
612

@@ -129,4 +135,4 @@ function handleSnapshotRequest(data) {
129135
}
130136
}
131137

132-
console.log('[Sentience Bridge] Ready - Extension ID:', chrome.runtime.id);
138+
// console.log('[Sentience Bridge] Ready - Extension ID:', chrome.runtime.id);

0 commit comments

Comments
 (0)