From 827c4b72040143182705181d26f414d8e968be88 Mon Sep 17 00:00:00 2001 From: Araragi Date: Thu, 22 Dec 2022 22:19:47 -0500 Subject: [PATCH] Breaking change fixes --- build-ff.js | 4 ++++ src/main.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build-ff.js b/build-ff.js index 6682cb5..e91cd05 100644 --- a/build-ff.js +++ b/build-ff.js @@ -107,7 +107,11 @@ const manif = { define: { global: 'window', execution_mode: '"ff_api"', +<<<<<<< HEAD manifest: '' + manif.manifest_version, +======= + manifest: ''+manif.manifest_version, +>>>>>>> d5298ab (Breaking change fixes) isBackground: 'false', BUILD_VERSION: JSON.stringify([0, rev]) }, diff --git a/src/main.ts b/src/main.ts index 323e4bb..c59d610 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,7 @@ import { getQueryProcessor, QueryProcessor } from "./websites"; import { ifetch, Platform, sendCmd, lqueue, supportedAltDomain, supportedMainDomain, genPort, initMainIPC } from "./platform"; import TextEmbeddingsSvelte from "./Components/TextEmbeddings.svelte"; import { HydrusClient } from "./hydrus"; -import { registerPlugin } from 'linkifyjs'; +import { registerPlugin, createTokenClass } from 'linkifyjs'; import ViewCountSvelte from "./Components/ViewCount.svelte"; import type { ImageProcessor, WorkerEmbeddedFile } from './processor.worker'; @@ -709,7 +709,7 @@ const startup = async (is4chanX = true) => { const START_STATE = parser.start; const pref = qp.getPostIdPrefix(); - const endQuote = utils.createTokenClass('postQuote', { + const endQuote = createTokenClass('postQuote', { isLink: true, toHref() { return `#${pref}${this.toString().substr(2)}`;