Skip to content

Commit e25d341

Browse files
authored
Update home.js (always show donation again)
1 parent d74bf5e commit e25d341

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

static/assets/scripts/home.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -779,18 +779,7 @@ try {
779779
}
780780
async function showKofiDonationModal(options = {}) {
781781

782-
if (localStorage.getItem("seen-modal-dk") !== 'true') {
783-
localStorage.setItem("seen-modal-dk", "true");
784-
// Create a modal for the DK memorial
785-
return createModal({
786-
heading: "RIP DK",
787-
description: `<p>Hello CCPorted,</p><p style = "text-indent: 30px">It has come to our attention that one the admins on our discord server, ! THΣ DK, was recently killed in a shooting.
788-
! THΣ DK was a great person and contributed immensely to CCPorted as an Admin and the Creator of the legendary Gemmy bot. He will be missed.
789-
<br><br>
790-
-SoJS, Derky, Lucas, Ian and the CCPorted Community.</p>`,
791-
cta: "RIP DK"
792-
});
793-
}
782+
localStorage.removeItem("seen-modal-dk"0;
794783
// Default options
795784
const defaults = {
796785
kofiUrl: 'https://ko-fi.com/ccported',
@@ -804,9 +793,9 @@ try {
804793
// Merge defaults with provided options
805794
const config = { ...defaults, ...options };
806795
await window.ccPorted.miningLoadPromise;
807-
if (window.mining || window.ccPorted.miningEnabled || window.ccPorted.miningLoading || localStorage.getItem("mining-consent") == 'true') {
808-
return;
809-
}
796+
// if (window.mining || window.ccPorted.miningEnabled || window.ccPorted.miningLoading || localStorage.getItem("mining-consent") == 'true') {
797+
// return;
798+
// }
810799
// Check if mining is already enabled globally, if so, we don't need to show the mining option
811800
if (config.miningEnabled && window.mining) {
812801
console.log("Mining is already active, not showing mining toggle in modal");

0 commit comments

Comments
 (0)