Browse Source

Fix failed attempt at optimizing tree-shaking

pull/46/head
coomdev 2 years ago
parent
commit
f33752623a
  1. 2
      main.meta.js
  2. 1094
      main.user.js
  3. 4
      src/thirdeye.ts

2
main.meta.js

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

1094
main.user.js

File diff suppressed because it is too large

4
src/thirdeye.ts

@ -1,7 +1,7 @@
import type { EmbeddedFile, ImageProcessor } from "./main";
import { localLoad, settings } from "./stores";
import { Buffer } from "buffer";
import {decode} from 'jpeg-js/lib/decoder';
import { decode } from 'jpeg-js';
import { bmvbhash_even } from "./phash";
import { ifetch, Platform } from "./platform";
@ -141,7 +141,7 @@ const findFileFrom = async (b: Booru, hex: string, abort?: EventTarget) => {
cache[b.domain] = {};
cache[b.domain][hex] = tran;
return tran;
} catch(e) {
} catch (e) {
console.error('The following error might be expected');
console.error(e);
return [];

Loading…
Cancel
Save