fix: backward comp cache web script

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-21 12:10:31 +01:00
parent 00e25ed4b8
commit 71270b3493
7 changed files with 7 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ Once your proxy is running, you need to configure the OpenPanel script on your f
```html
<script>
window.op=window.op||function(){var n=[],o=new Proxy((function(){arguments.length>0&&n.push(Array.prototype.slice.call(arguments))}),{get:function(o,t){return"q"===t?n:function(){n.push([t].concat(Array.prototype.slice.call(arguments)))}}});return o}();
window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:function(){n.push([r].concat([].slice.call(arguments)))}} ,has:function(t,r){return"q"===r}}) }();
window.op('init', {
apiUrl: 'https://api.domain.com'
clientId: 'YOUR_CLIENT_ID',