Skip to content

Commit

Permalink
haha yes
Browse files Browse the repository at this point in the history
  • Loading branch information
aetheryx committed Dec 15, 2018
1 parent eac5a08 commit 57c7acb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
node_modules

src/Powercord/plugins/stylemanager/styles/*
!src/Powercord/plugins/stylemanager/styles/ac-*.css
!src/Powercord/plugins/stylemanager/styles/ac-*.scss
!src/Powercord/plugins/stylemanager/styles/pc-*.css
!src/Powercord/plugins/stylemanager/styles/pc-*.scss

config.json
8 changes: 6 additions & 2 deletions src/Powercord/plugins/updater.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Plugin = require('powercord/Plugin');
const { join } = require('path');
const { get } = require('powercord/http');
const { sleep } = require('powercord/util');
const { sleep, createElement } = require('powercord/util');
const { ReactDOM, React } = require('powercord/webpack');
const { Toast } = require('powercord/components');

Expand Down Expand Up @@ -55,7 +55,11 @@ module.exports = class Updater extends Plugin {
}

askUpdate () {
const container = document.createElement('div');
if (document.getElementById('powercord-updater')) {
return;
}

const container = createElement('div', { id: 'powercord-updater' });
document.body.appendChild(container);

ReactDOM.render(
Expand Down

0 comments on commit 57c7acb

Please sign in to comment.