feat: kofi + update dompurify function

This commit is contained in:
SethBurkart123
2025-02-27 17:20:27 +11:00
parent 4703d68bac
commit 3277b02dfb
3 changed files with 22 additions and 3 deletions
+11
View File
@@ -32,6 +32,7 @@ import LogoLightOutline from '@/resources/icons/betterseqta-light-outline.png'
import icon48 from '@/resources/icons/icon-48.png?base64'
import assessmentsicon from '@/seqta/icons/assessmentsIcon'
import coursesicon from '@/seqta/icons/coursesIcon'
import kofi from '@/resources/kofi.png'
// Stylesheets
import iframeCSS from '@/css/iframe.scss?raw'
@@ -337,6 +338,10 @@ export function OpenWhatsNewPopup() {
`,
).firstChild
const kofi_url = browser.runtime.getURL(kofi)
console.log(kofi_url)
let footer = stringToHTML(
/* html */ `
<div class="whatsnewFooter">
@@ -358,6 +363,12 @@ export function OpenWhatsNewPopup() {
</svg>
</a>
</div>
<div>
<a href="https://ko-fi.com/sethburkart" target="_blank" style="background: none !important; margin:0;margin-left:6px; padding:0;">
<img height="25" style="border:0px;height:25px;" src="chrome-extension://gkgllhboiibhncnhlijhkbnamfpomjph/resources/kofi.png" border="0" alt="Buy Me a Coffee at ko-fi.com" />
</a>
</div>
</div>
`).firstChild