Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* global localStorage, alert */
var preference
var ipc = require('electron').ipcRenderer
var modifiers = require('emojilib').fitzpatrick_scale_modifiers
var defaultPreference = {
'open-window-shortcut': 'ctrl+shift+space',
'emoji-size': '20',
'open-at-login': false,
'skin-tone-modifier': ''
}
var preferenceNames = {
'open-window-shortcut': 'Mojibar shortcut',
'emoji-size': 'Emoji font size',
'open-at-login': 'Start Mojibar at login',
'skin-tone-modifier': 'Skin tone modifier'
}
var applyPreferences = function (preference, initialization) {
/* global localStorage, alert */
var preference
var ipc = require('electron').ipcRenderer
var modifiers = require('emojilib').fitzpatrick_scale_modifiers
var defaultPreference = {
'open-window-shortcut': 'ctrl+shift+space',
'emoji-size': '20',
'open-at-login': false,
'skin-tone-modifier': ''
}
var preferenceNames = {
'open-window-shortcut': 'Mojibar shortcut',
'emoji-size': 'Emoji font size',
'open-at-login': 'Start Mojibar at login',
'skin-tone-modifier': 'Skin tone modifier'
}
var applyPreferences = function (preference, initialization) {
/* global localStorage, fetch */
var emojilib = JSON.parse(localStorage.getItem('emojilib')) || require('emojilib').lib
var emojikeys = JSON.parse(localStorage.getItem('emojikeys')) || require('emojilib').ordered
var modifiers = require('emojilib').fitzpatrick_scale_modifiers
var clipboard = require('electron').clipboard
var ipc = require('electron').ipcRenderer
var CommandProcessor = require('./CommandProcessor')
var MicAudioProcessor = require('./micAudioProcessor')
var KeywordSpotter = require('honkling-node')
var displayManager = require('./displayManager')
var index = buildIndex()
var indexKeys = Object.keys(index)
var emojikeyIndexTable = buildEmojikeyIndexTable()
var searching = false
var searchInput = document.querySelector('.js-search')
var preference = JSON.parse(localStorage.getItem('preference'))
var directions = {
37: 'left',
/* global localStorage, fetch */
var emojilib = JSON.parse(localStorage.getItem('emojilib')) || require('emojilib').lib
var emojikeys = JSON.parse(localStorage.getItem('emojikeys')) || require('emojilib').ordered
var modifiers = require('emojilib').fitzpatrick_scale_modifiers
var clipboard = require('electron').clipboard
var ipc = require('electron').ipcRenderer
var index = buildIndex()
var indexKeys = Object.keys(index)
var emojikeyIndexTable = buildEmojikeyIndexTable()
var searching = false
var searchInput = document.querySelector('.js-search')
var preference = JSON.parse(localStorage.getItem('preference'))
var directions = {
37: 'left',
38: 'up',
39: 'right',
40: 'down'
}
function fetchAndUpdateLocalCache () {
.reduce(function (collected, key) {
var e = emoji.lib[key];
var char = e.char;
if (e.fitzpatrick_scale) {
emoji.fitzpatrick_scale_modifiers.forEach(function (modifier) {
collected.push(char + modifier);
});
}
collected.push(char);
return collected;
}, [])
.concat([