Browse Source

Fix previews when hotlinking content is enabled

pull/46/head
coomdev 2 years ago
parent
commit
f7a408fba3
  1. 2
      main.meta.js
  2. 5
      main.user.js
  3. 1
      src/Components/Embedding.svelte

2
main.meta.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.166
// @version 0.167
// @description uhh
// @author You
// @match https://boards.4channel.org/*

5
main.user.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.166
// @version 0.167
// @description uhh
// @author You
// @match https://boards.4channel.org/*
@ -81,7 +81,7 @@
var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() {
define_BUILD_VERSION_default = [0, 166];
define_BUILD_VERSION_default = [0, 167];
}
});
@ -19909,6 +19909,7 @@
return;
} else {
let head = await getHeaders(thumb);
$$invalidate(6, url = thumb);
type = {
ext: "",
mime: head["content-type"].split(";")[0].trim()

1
src/Components/Embedding.svelte

@ -62,6 +62,7 @@
if (!type) return
} else {
let head = await getHeaders(thumb)
url = thumb;
type = {
ext: '' as any,
mime: head['content-type'].split(';')[0].trim() as any,

Loading…
Cancel
Save