From 3c20efaa3fe85108827f8ed47832ba4f2c7930fe Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 23 Aug 2025 08:50:16 +0100 Subject: [PATCH] Switched to own hosted cors-proxy Signed-off-by: Marcus Noble --- src/BindIt.js | 2 +- src/script.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/BindIt.js b/src/BindIt.js index 4cf0799..b213321 100644 --- a/src/BindIt.js +++ b/src/BindIt.js @@ -60,7 +60,7 @@ function bindIt(obj, base = '', withFuncs = {}, onUpdate = ()=>{}) { } if (onUpdate !== undefined) { requestAnimationFrame(() => { - onUpdate(); + onUpdate(bindKey, value); }); } }); diff --git a/src/script.js b/src/script.js index bb9ecd1..58a9468 100644 --- a/src/script.js +++ b/src/script.js @@ -2,7 +2,7 @@ let {bskyPost, config} = bindIt( { config: { - corsProxy: `https://corsproxy.io/?url=`, + corsProxy: `https://cors-proxy.cluster.fun/`, width: 600, windowTitle: "$handle", // $handle, $displayName, $url windowDecoration: true, @@ -56,7 +56,13 @@ } } }, - updateImage + (prop, val) => { + if (prop === "config.corsProxy") { + loadPost(); + } else { + updateImage(); + } + } ); var updateImageTimeout;