wip: add report form page (not wired yet)
Ported stroy-bot-report form saved before tests are written. Not reachable from the app until save/mode tests cover the delete-and- recreate algorithm. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* «← Вернуться назад» — как в старом коде: если страница открыта во фрейме, назад идёт верхнее окно,
|
||||
* при ошибке доступа к нему (другой домен) — текущее.
|
||||
*/
|
||||
export function goBack(): void {
|
||||
try {
|
||||
if (window.top && window.top !== window) {
|
||||
window.top.history.back();
|
||||
} else {
|
||||
window.history.back();
|
||||
}
|
||||
} catch {
|
||||
window.history.back();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user