Switched to own hosted cors-proxy
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
@@ -60,7 +60,7 @@ function bindIt(obj, base = '', withFuncs = {}, onUpdate = ()=>{}) {
|
||||
}
|
||||
if (onUpdate !== undefined) {
|
||||
requestAnimationFrame(() => {
|
||||
onUpdate();
|
||||
onUpdate(bindKey, value);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user