From c71a954d3889e7a6750e67ca40b8d0db9f486b4d Mon Sep 17 00:00:00 2001 From: Ari24-cb24 Date: Fri, 29 Oct 2021 21:31:11 +0200 Subject: [PATCH 1/2] Added extension build manifest --- .env.production | 1 + .gitignore | 1 + public/manifest.json | 26 ++++++++++++++------------ 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..2d2e9a0 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +INLINE_RUNTIME_CHUNK=false \ No newline at end of file diff --git a/.gitignore b/.gitignore index 38121b0..1dd36b0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ yarn-error.log* # stuff package-lock.json +/build diff --git a/public/manifest.json b/public/manifest.json index 7197bba..f2870fb 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,15 +1,17 @@ { - "short_name": "MyAnimeTab", + "manifest_version": 3, + "author": "Ari24", + "description": "A custom startpage for your browser!", + "minimum_chrome_version": "29", "name": "MyAnimeTab", - "icons": [ - { - "src": "icons/favicon.ico", - "sizes": "256x256 128x128 64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" + "short_name": "MyAnimeTab", + "version": "1.0.0", + "icons": { + "192": "icons/favicon.ico", + "512": "icons/favicon.ico" + }, + "chrome_url_overrides": { + "newtab": "index.html" + }, + "content_security_policy": "script-src 'sha256-eE1k/Cs1U0Li9/ihPPQ7jKIGDvR8fYw65VJw+txfifw=';" } From 3ed9891a38b8e709bbfb5a03824aab3c8034a50f Mon Sep 17 00:00:00 2001 From: Ari24-cb24 Date: Fri, 29 Oct 2021 21:43:40 +0200 Subject: [PATCH 2/2] Fixed bug with auto hiding on start even if it was false --- src/App.js | 6 ++++-- src/index.css | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 3fe4e80..30f6b77 100644 --- a/src/App.js +++ b/src/App.js @@ -65,9 +65,11 @@ class App extends React.Component { searchbarFocus: data.focus, lastAction: TimeUtils.getSeconds(new Date()) }); - }) + }); - this.startBlurInterval(); + if (Settings.getUserSetting("auto_hide") == true) { + this.startBlurInterval(); + } } componentWillUnmount() { diff --git a/src/index.css b/src/index.css index ae3597c..99f5be0 100644 --- a/src/index.css +++ b/src/index.css @@ -6,6 +6,7 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; + font-size: 100% !important; } code {