From fbfd68fea25cd27adab06cfe017b9092fe523d0d Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Thu, 3 Aug 2023 10:23:40 +0800 Subject: [PATCH] optimize some code --- dist/chrome/manifest.json | 2 +- dist/chrome/static/js/content.js | 2 +- dist/edge/manifest.json | 2 +- dist/edge/static/js/content.js | 2 +- dist/firefox/manifest.json | 2 +- dist/firefox/static/js/content.js | 2 +- manifest.firefox.json | 2 +- package.json | 2 +- public/manifest.json | 2 +- src/content.js | 14 ++++++++++---- src/hooks/Translate.js | 7 ------- 11 files changed, 19 insertions(+), 20 deletions(-) diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index b6d3625..40c3eed 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "__MSG_app_name__", "description": "__MSG_app_description__", - "version": "1.2.0", + "version": "1.2.1", "default_locale": "zh", "author": "Gabe", "homepage_url": "https://github.com/fishjar/kiss-translator", diff --git a/dist/chrome/static/js/content.js b/dist/chrome/static/js/content.js index 740113c..4a04e4c 100644 --- a/dist/chrome/static/js/content.js +++ b/dist/chrome/static/js/content.js @@ -1,2 +1,2 @@ /*! For license information please see content.js.LICENSE.txt */ -!function(){var e={534:function(e,t,n){"use strict";var r=n(7313),a=n(2224);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n