From 8aa6db1275ee5ed83aa4656f0391205b6d08b6b4 Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Thu, 25 May 2023 08:07:37 +0200 Subject: [PATCH] refactor(build): improve browser-polyfill inject --- CHANGELOG.md | 1 + package.json | 4 ++-- src/popup.html | 1 - src/popup.js | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e178e..27a597a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. ### 📚 Documentation - Add logo and screenshot to readme +- Update quick-links ## \[[0.9.2](https://gitea.usrspace.at/XimeX/usrspace-browser-addon/releases/tag/v0.9.2)] - 2023-05-24 diff --git a/package.json b/package.json index 9440b91..cebfbb9 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ }, "scripts": { "copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js", - "inject-browser-polyfill": "sed -i -r 's/().*/\\1 diff --git a/src/popup.js b/src/popup.js index 30890a1..5c4b58f 100644 --- a/src/popup.js +++ b/src/popup.js @@ -1,4 +1,5 @@ import { QUICK_LINKS } from './config.js'; +// [INJECT-BROWSER-POLYFILL] const dateTimeFormat = Intl.DateTimeFormat([], { dateStyle: 'medium', timeStyle: 'short' });