<script>
"use strict";

try {
  const sensorName = location.hash.substring(1);
  const sensor = new window[sensorName]();
  window.parent.postMessage({ enabled: true }, "*");
} catch (e) {
  window.parent.postMessage({ enabled: false }, "*");
}
</script>
