feat(theme): локальный выбор и показанная тема handoff (#13)

This commit is contained in:
Panfilov Konstantin committed 2026-10-21 20:42:28 +03:00
1 parent 3740839321
commit 9c06977e03
11 files changed
+163 -49

No files matched your search

+2
View File
@@ -198,6 +198,8 @@ $basePickerAccept = 'image/jpeg,image/png,image/gif,image/webp,image/bmp,image/a
function redirectToTour(record) {
let targetUrl = record.meta.redirectBase + encodeURIComponent(record.key);
if (record.meta.redirectUtm) targetUrl += '&' + record.meta.redirectUtm;
const shownTheme = window.ZoomzillaTheme.current();
targetUrl += '&shown_theme=' + encodeURIComponent(shownTheme);
window.PublicNavigationGuard.allowNavigation(() => { window.location.href = targetUrl; });
}