1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-20 19:28:52 +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)

View File

@@ -58,10 +58,11 @@
electron.webFrame.setZoomLevelLimits(1, 1)
var version = electron.remote.app.getVersion()
document.title = 'Boost' + ((version == null || version.length === 0) ? ' DEV' : '')
var scriptUrl = process.env.BOOST_ENV === 'development'
const _ = require('lodash')
var scriptUrl = _.find(electron.remote.process.argv, a => a === '--hot')
? 'http://localhost:8080/assets/main.js'
: '../../compiled/main.js'
var scriptEl=document.createElement('script')
var scriptEl = document.createElement('script')
scriptEl.setAttribute("type","text/javascript")
scriptEl.setAttribute("src", scriptUrl)
document.getElementsByTagName("head")[0].appendChild(scriptEl)