RTO_detector.js
Helper file documentation for
RTO_detector.js.Docs updated: 2025-12-17
Summary
Small helper to detect the extension once.
- Exports:
RTOdetectOnce,RTOdetected - Depends on: RTO_form_api.js
What it is
A tiny helper that runs RTOForm.detect() once and caches the result in window.RTOdetected.
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>