update deps

This commit is contained in:
Niki Wix Skaarup 2025-06-20 09:44:17 +02:00
parent 4885022791
commit 39587a424c
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C
3 changed files with 18 additions and 11 deletions

View file

@ -50,11 +50,11 @@
// @noframes
// ==/UserScript==
import mangaReadingLibFrame from './templates/manga-reading-lib-frame.html';
import mangaReadingConfig from './templates/manga-reading-config.html';
import mangaReadingNotificationButton from './templates/manga-reading-notification-button.html';
import mangaReadingNotificationContainer from './templates/manga-reading-notification-container.html';
import mangaReadingNotification from './templates/manga-reading-notification.html';
import mangaReadingLibFrame from './templates/manga-reading-lib-frame.html' with { type: 'text' };
import mangaReadingConfig from './templates/manga-reading-config.html' with { type: 'text' };
import mangaReadingNotificationButton from './templates/manga-reading-notification-button.html' with { type: 'text' };
import mangaReadingNotificationContainer from './templates/manga-reading-notification-container.html' with { type: 'text' };
import mangaReadingNotification from './templates/manga-reading-notification.html' with { type: 'text' };
async function initMangaReading() {
const logName = `${GM.info.script.name} -`;
@ -340,7 +340,7 @@ async function initMangaReading() {
async function onInit(callback: () => Promise<void>, postCallback: () => Promise<void>) {
try {
console.log(`${logName} Loading...`);
const id = GM.registerMenuCommand(`Configure ${GM.info.script.name}`, () => {
GM.registerMenuCommand(`Configure ${GM.info.script.name}`, () => {
openConfig();
});
registerKeyUps();
@ -921,7 +921,7 @@ async function initMangaReading() {
}
}
const resp = await GM.xmlHttpRequest({
const raw = await GM.xmlHttpRequest({
url: input.toString(),
method,
headers,
@ -931,6 +931,13 @@ async function initMangaReading() {
data: init?.body?.toString() ?? undefined
});
const resp = raw as unknown as {
responseText: string;
responseHeaders: string;
status: number;
statusText: string;
};
const respHeaders = parseHeaders(resp.responseHeaders);
return new Response(resp.responseText, {