refactor: enhance public API for replay control with backward compatibility for Ciphera and branding update to Pulse

This commit is contained in:
Usman Baig
2026-01-19 17:22:13 +01:00
parent 5d867dd519
commit 3da53aa6c0

View File

@@ -495,8 +495,8 @@
return null;
}
// * Public API for replay control
window.ciphera = window.ciphera || function(cmd) {
// * Public API for replay control (ciphera for backward compat, pulse for Pulse branding)
const replayApi = function(cmd) {
if (cmd === 'disableReplay') {
endReplaySession();
} else if (cmd === 'getReplayMode') {
@@ -505,6 +505,8 @@
return replayEnabled;
}
};
window.pulse = window.pulse || replayApi;
window.ciphera = window.ciphera || replayApi;
// * Track initial pageview
trackPageview();