1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-21 03:38:51 +00:00

change IPC module(Raw buffer -> Socket) & set window behaviour for Windows

This commit is contained in:
Dick Choi
2015-12-15 13:43:28 +09:00
parent 2499a05473
commit a872ad9d8b
8 changed files with 179 additions and 94 deletions

View File

@@ -30,7 +30,8 @@
<script>
const electron = require('electron')
electron.webFrame.setZoomLevelLimits(1, 1)
var scriptUrl = process.env.BOOST_ENV === 'development'
const _ = require('lodash')
var scriptUrl = _.find(electron.remote.process.argv, a => a === '--hot')
? 'http://localhost:8080/assets/finder.js'
: '../../compiled/finder.js'
var scriptEl=document.createElement('script')

View File

@@ -13,7 +13,9 @@ import dataStore from 'boost/dataStore'
const electron = require('electron')
const { remote, clipboard, ipcRenderer } = electron
var hideFinder = remote.getGlobal('hideFinder')
function hideFinder () {
ipcRenderer.send('hide-finder')
}
function notify (...args) {
return new window.Notification(...args)