BetterDiscordApp-v1/BetterDiscordApp.js

24 lines
667 B
JavaScript

/* BetterDiscordApp Main
* Version: 1.0
* Author: Jiiks | http://jiiks.net
* Date: 25/08/2015 - 08:12
* https://github.com/Jiiks/BetterDiscordApp
*/
var _helpers = require('./bda/helper.js');
var _helper;
var _mainWindow;
var _version = "1.0.0";
function BetterDiscordApp(mainWindow) {
_mainWindow = mainWindow;
_helper = new _helpers.Helper(mainWindow);
_helper.getWeb().on('did-finish-load', function() { init(); });
}
function init() {
_helper.log("v" + _version + " initialized.");
_helper.injectStylesheet("https://raw.githubusercontent.com/Jiiks/BetterDiscordApp/master/css/main.css");
}
exports.BetterDiscordApp = BetterDiscordApp;