one
Version:
One is a React framework for web, iOS, and Android apps.
35 lines (32 loc) • 741 B
JavaScript
import { assertStagedListener } from "./validate.mjs";
async function check() {
throw new Error("Updates.check needs an iOS or Android build");
}
async function fetch() {
throw new Error("Updates.fetch needs an iOS or Android build");
}
function getStaged() {
return null;
}
function addStagedListener(listener) {
assertStagedListener(listener);
return { remove: () => {} };
}
async function reload() {
if (typeof window !== "undefined") window.location.reload();
}
const Updates = Object.freeze({
isEnabled: false,
runtimeVersion: null,
updateId: null,
isEmbeddedLaunch: false,
createdAt: null,
manifest: null,
check,
fetch,
getStaged,
addStagedListener,
reload
});
export { Updates };
//# sourceMappingURL=index.mjs.map