Extension detector helper
A tiny detection helper when you only need a yes/no install check before showing richer UI.
Best for
A lightweight install/enabled gate before you reveal actions.
Load with
RTO_form_api.js first.
Prefer connector when
You also want a global connected flag or a stable request wrapper.
Summary
Small helper to detect the extension once.
- Exports:
RTOdetectOnce,RTOdetected - Depends on:
RTO_form_api.js
What it is
A tiny helper that calls RTOForm.detect(timeoutMs) once and caches the result in
window.RTOdetected.
This helper expects the current Form API signature: detect(timeoutMs:number) (not an options object).
Download
Download RTO_detector.jsExample
<script src="../RTO_helpers/RTO_form_api.js"></script>
<script src="../RTO_helpers/RTO_detector.js"></script>
<script>
RTOdetectOnce(1500).then(function(ok){
console.log("detected?", ok, "cached:", window.RTOdetected);
});
</script>