Skip to content

Commit

Permalink
Add default frequently used defaults (closes #63)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDrake committed Apr 19, 2017
1 parent bf3f8f8 commit 956fb94
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/utils/frequently.js
@@ -1,6 +1,20 @@
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) {
var { id } = emoji
Expand Down

0 comments on commit 956fb94

Please sign in to comment.