Spaces:
Running

kindleamazon / index.html
???
Add bounded bridge validation page
7bbaaee verified
Raw History Blame Contribute Delete
1.07 kB
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Amazon VRP Kindle Store validation</title>
<style>
body{font:18px sans-serif;padding:24px;background:#fff;color:#111}
pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#eee}
</style>
<h1>Amazon VRP validation page</h1>
<pre id="result">Running bounded bridge checks…</pre>
<script>
(() => {
const result = {
marker: "KSTORE_HOST_BOUNDARY_20261117",
origin: location.origin,
nativeHostPresent: typeof NativeHost !== "undefined",
storeWebViewPresent: typeof StoreWebView !== "undefined"
};
if (result.nativeHostPresent) {
try { result.accessibilityEnabled = NativeHost.getAccessibilityStatus(); }
catch (e) { result.accessibilityError = String(e); }
try { result.syntheticContentOwned = NativeHost.isContentOnDevice("B000000000", "EBOK"); }
catch (e) { result.contentError = String(e); }
}
document.getElementById("result").textContent = JSON.stringify(result, null, 2);
})();
</script>