Compare commits
3 Commits
e3e96e95fe
...
main
Author | SHA1 | Date | |
---|---|---|---|
3c20efaa3f
|
|||
3350d12255
|
|||
18fe82dadd
|
@@ -60,7 +60,7 @@ function bindIt(obj, base = '', withFuncs = {}, onUpdate = ()=>{}) {
|
||||
}
|
||||
if (onUpdate !== undefined) {
|
||||
requestAnimationFrame(() => {
|
||||
onUpdate();
|
||||
onUpdate(bindKey, value);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@@ -75,7 +75,7 @@
|
||||
<div class="handle" bind-it-to="bskyPost.handle"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body" bind-it-to="bskyPost.text" bind-it-with="asHTML"></div>
|
||||
<div class="body" bind-it-to="bskyPost.text" bind-it-with="innerHTML"></div>
|
||||
|
||||
<div class="embeds">
|
||||
<div class="images" bind-it-to="bskyPost.images.exists" bind-it-with="visible">
|
||||
|
@@ -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,
|
||||
@@ -45,9 +45,6 @@
|
||||
this.setAttribute('src', "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==");
|
||||
}
|
||||
},
|
||||
asHTML: function(value) {
|
||||
this.innerHTML = value;
|
||||
},
|
||||
setWidth: function(value) {
|
||||
this.style.width = `${value}px`;
|
||||
},
|
||||
@@ -59,7 +56,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
updateImage
|
||||
(prop, val) => {
|
||||
if (prop === "config.corsProxy") {
|
||||
loadPost();
|
||||
} else {
|
||||
updateImage();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
var updateImageTimeout;
|
||||
|
@@ -42,6 +42,10 @@ body {
|
||||
left: -9999;
|
||||
top: -9999;
|
||||
margin-left: -10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.post {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.link {
|
||||
|
Reference in New Issue
Block a user