-
Notifications
You must be signed in to change notification settings - Fork 11
Fix Sourcepoint HTML asset rewriting #793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ import { installSourcepointGuard } from './script_guard'; | |
| type SourcepointWindow = Window & { | ||
| __tsjs_sourcepoint?: { | ||
| rewriteSdk?: boolean; | ||
| debugForceBannerVisible?: boolean; | ||
| debugClearStateOnLoad?: boolean; | ||
|
Comment on lines
+8
to
+9
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 thinking — |
||
| }; | ||
| }; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 note — These two fields are added to the
SourcepointWindowtype and the Rust config script now serializes both intowindow.__tsjs_sourcepoint, but no TS code reads them — the only consumer (shouldInstallSourcepointGuard) readsrewriteSdkonly. Both debug behaviors are implemented entirely by the Rust-injected inline scripts. Keeping the type in sync with the emitted JSON is defensible as documentation; flagging so it's a conscious choice rather than a leftover from a planned-but-unwired TS consumer.