Browse Source

Breaking change fixes

pull/53/head
Araragi 2 years ago
parent
commit
827c4b7204
  1. 4
      build-ff.js
  2. 4
      src/main.ts

4
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])
},

4
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)}`;

Loading…
Cancel
Save