Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into 2.5.0-pre
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Jun 12, 2017
2 parents 3e8612b + abc760e commit b131a61
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 1 addition & 2 deletions app/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ function buildIndex () {
}

function isWord (charCode) {
var word = String.fromCharCode(charCode).match(/\w/)
return Boolean(word) ? word : false
return String.fromCharCode(charCode).match(/\w/)
}

function jumpto (destination) {
Expand Down
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
var { app, ipcMain, globalShortcut, Menu } = require('electron')
var isMac = /darwin/.test(process.platform)
var menubar = require('menubar')
var mb = menubar({ dir: __dirname + '/app', width: 440, height: 270, icon: __dirname + '/app/Icon-Template.png', preloadWindow: true, windowPosition: 'topRight', alwaysOnTop: true })
var isDev = require('electron-is-dev')
var path = require('path')
var mb = menubar({
dir: path.join(__dirname, '/app'),
width: 440,
height: 270,
icon: path.join(__dirname, '/app/Icon-Template.png'),
preloadWindow: true,
windowPosition: 'topRight',
alwaysOnTop: true
})

mb.on('show', function () {
mb.window.webContents.send('show')
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "index.js",
"dependencies": {
"electron-is-dev": "^0.1.2",
"emojilib": "2.0.7",
"emojilib": "2.2.0",
"menubar": "^5.1.0"
},
"devDependencies": {
"electron": "^1.4.0",
"electron": "^1.6.0",
"electron-packager": "^8.0.0",
"standard": "^4.5.3"
"standard": "^9.0.2"
},
"scripts": {
"start": "electron .",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mojibar [![Travis CI build status](https://img.shields.io/travis/muan/mojibar.svg)](https://travis-ci.org/muan/mojibar) [![JS Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
# Mojibar [![Travis CI build status](https://img.shields.io/travis/muan/mojibar.svg)](https://travis-ci.org/muan/mojibar) [![JS Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![Greenkeeper badge](https://badges.greenkeeper.io/muan/mojibar.svg)](https://greenkeeper.io/)

A menubar app adaptation of [Emoji searcher](http://emoji.muan.co).

Expand Down

0 comments on commit b131a61

Please sign in to comment.