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) {
|
if (onUpdate !== undefined) {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
onUpdate();
|
onUpdate(bindKey, value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
let {bskyPost, config} = bindIt(
|
let {bskyPost, config} = bindIt(
|
||||||
{
|
{
|
||||||
config: {
|
config: {
|
||||||
corsProxy: `https://corsproxy.io/?url=`,
|
corsProxy: `https://cors-proxy.cluster.fun/`,
|
||||||
width: 600,
|
width: 600,
|
||||||
windowTitle: "$handle", // $handle, $displayName, $url
|
windowTitle: "$handle", // $handle, $displayName, $url
|
||||||
windowDecoration: true,
|
windowDecoration: true,
|
||||||
@@ -56,7 +56,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateImage
|
(prop, val) => {
|
||||||
|
if (prop === "config.corsProxy") {
|
||||||
|
loadPost();
|
||||||
|
} else {
|
||||||
|
updateImage();
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
var updateImageTimeout;
|
var updateImageTimeout;
|
||||||
|
Reference in New Issue
Block a user