uhhh something or something idk

pull/1/head
Drake 2 years ago
parent cb9513745e
commit a3272cfa7c

2
dist/build.js vendored

File diff suppressed because one or more lines are too long

@ -36,6 +36,10 @@ async function init() {
async function add(iife, meta) {
const extNest = demon.summon("internal/nest")
const currdemon = await idb.get("demon")
const exports = (0, eval)(iife)
if (!!exports.meta) {
meta = exports.meta
}
currdemon.plugins[meta.name] = {
initialize: iife,
meta: meta

@ -15,6 +15,9 @@ export default (props) => {
if (!props.nest.ghost.pluginsList[props.name]) {
return null //you wouldn't think i'd have to do this but
}
if (!props.nest.ghost.pluginsStatus[props.name]) {
return null //you wouldn't think i'd have to do this but
}
return (<>
<Card type="cardPrimary" outline={false} editable={false}>
<Header className="demon-settings-card-header" size={Header.Sizes.SIZE_20}>

@ -4,6 +4,7 @@ import utils from "./api/utils/index.js"
import plugins from "./api/plugin.js"
import settings from "./api/ui/settings/settings.js"
import css from "./api/css.js"
import patcher from "./api/patcher"
if (!window.DiscordNative) {
throw new Error("Sorry, Demoncord cannot be used on web!")
@ -19,7 +20,8 @@ const demon = {
internal: {
nest: common.nests.make()
},
css
css,
patcher
}
function isAllowed(mod) {

Loading…
Cancel
Save