Switched to own hosted cors-proxy

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-08-23 08:50:16 +01:00
parent 3350d12255
commit 3c20efaa3f
2 changed files with 9 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ function bindIt(obj, base = '', withFuncs = {}, onUpdate = ()=>{}) {
}
if (onUpdate !== undefined) {
requestAnimationFrame(() => {
onUpdate();
onUpdate(bindKey, value);
});
}
});

View File

@@ -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;