mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
b7951baf23
- RTL: the measured pills and centred controls use logical forms or a marked line - i18n: the two native widget numbers are positions, not counts (NOT_PLURAL) - Types: styleOverride on the lazy GL map, the location and shared-file payloads, the capabilities fallback, the transport sheet's stay metadata - ESLint: latest-value refs move to layout effects, usePresence keeps the last open state in state, the booking import opens clean with a shared document kept in the list (the reset effect used to clear it again) - Layers: the phone import sheet lives under mobile/ and reads through tripRepo; the offline host check moves to utils/tileUrl - Sizes: plugin layer geometry, hardNavigate and the exit animations get modules of their own - Tests follow the status radios, the stay chip overview, the dock + button for the first list and the field token; store registry lists the new stores
16 lines
586 B
TypeScript
16 lines
586 B
TypeScript
import { isNativeApp } from '../native/platform';
|
|
|
|
/**
|
|
* A full page load to `url`. In the apps it waits for the first page to finish
|
|
* loading: started earlier, it cancels that load, and the shell answers a
|
|
* cancelled load with its "Server not reachable" page, which is where a
|
|
* signed-out user opening the app for the first time ended up.
|
|
*/
|
|
export function hardNavigate(url: string): void {
|
|
const go = () => {
|
|
window.location.href = url;
|
|
};
|
|
if (isNativeApp() && document.readyState !== 'complete') window.addEventListener('load', go, { once: true });
|
|
else go();
|
|
}
|