Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const path = require('path');
const shell = require('shell');
const remote = require('remote');
const Menu = remote.require('menu');
const MenuItem = remote.require('menu-item');
const webFrame = require('electron').webFrame;
try {
const checker = require('spellchecker');
} catch (e) {
console.log(e);
}
/**
* Activates spell checking for every text input that is in the application
* At the moment the default language is en-US, this will eventually be
* determined by the language selected in the settings
* @return {void} void
*/
function activateSpellChecking() {
// Return if spell checker isn't found
"use strict"
const remote = require('remote');
const Menu = remote.require('menu');
const MMailbox = require('./models/MMailbox')
const mailboxActions = require('./actions/mailbox')
class MailboxList {
/***************************************************************************/
// Lifecycle
/***************************************************************************/
constructor(app) {
this.app = app
}
/***************************************************************************/
// Active state
/***************************************************************************/
/**
response.on('data', function(data) {
data = JSON.parse(data);
if (data.count < 2) {
console.log("😴 bots going offline")
http.get('http://localhost:3000/bots.no.longer.seeding.4wf')
require('remote').require('app').quit()
}
});
});
onClick: function onClick() {
console.log("Quit");
require('remote').require('app').quit();
}
}];
onClick: () => {
console.log("Quit");
require('remote').require('app').quit();
},
},
Theme.prototype.loadExtension = function() {
var ext = require('remote').require('browser-window').removeDevToolsExtension("DevTools Theme: Zero Dark Matrix");
var dir = path.join(__dirname, "chrome-devtools-zerodarkmatrix-theme","theme-extension" );
ext = require('remote').require('browser-window').addDevToolsExtension(dir);
};
angular.module('tc').factory('electron', function() {
return {
local: require('electron'),
remote: require('remote').require('electron')
}
});
function buildAppMenu(options){
if(!options) options = {};
var remote = require('remote');
var Menu = remote.require('menu');
var template = getAppMenuTmpl(options);
var menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
}
'use strict';
var ipc = require('ipc');
var remote = require('remote');
var Tray = remote.require('tray');
var Menu = remote.require('menu');
var path = require('path');
var soundButtons = document.querySelectorAll('.button-sound');
var closeEl = document.querySelector('.close');
var settingsEl = document.querySelector('.settings');
var trayIcon = null;
var trayMenu = null;
for (var i = 0; i < soundButtons.length; i++) {
var soundButton = soundButtons[i];
var soundName = soundButton.attributes['data-sound'].value;
prepareButton(soundButton, soundName);
}
'use strict';
const please = require('./external/Please');
const util = require('./js/util');
const ipcRenderer = require('electron').ipcRenderer;
const remote = require('remote');
const Menu = remote.require('menu');
const MenuItem = remote.require('menu-item');
let displayedServers = [];
let selectedServer = '';
let selectedChannel;
let selectedUsername;
initializeMenus();
util.activateSpellChecking();
/*
New channel was selected, tell main and trigger visual changes
*/
$('#channelList').on('click', 'channel', function (e) {
e.preventDefault();
//Enable input-fields