Add default frequently used defaults (closes #63)

release
Justin 2017-04-19 14:30:56 +01:00 committed by GitHub
parent bf3f8f8976
commit 956fb94656
1 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,20 @@
import store from './store' import store from './store'
let frequently = store.get('frequently') || {} const increment = 1000000000
let defaults = {
"heart": 1 * increment,
"smile": 2 * increment,
"disappointed": 3 * increment,
"grinning": 4 * increment,
"slightly_smiling_face": 5 * increment,
"+1": 6 * increment
}
let frequently = store.get('frequently')
if(!frequently) {
store.set('frequently', defaults)
frequently = defaults
}
function add(emoji) { function add(emoji) {
var { id } = emoji var { id } = emoji