This commit is contained in:
Theenoro 2017-09-24 18:53:21 +02:00
parent 82d2cc5bd6
commit 43fa503dcf
4 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,4 @@
const shared = require(global.__dirname+'/../js/shared');
$(function() { $(function() {
const Config = require('electron-config'); const Config = require('electron-config');
const config = new Config(); const config = new Config();

View File

@ -1,3 +1,4 @@
const shared = require(global.__dirname+'/../js/shared');
$(function() { $(function() {
const ipcRenderer = require('electron').ipcRenderer; const ipcRenderer = require('electron').ipcRenderer;
ipcRenderer.send('pot_real_open', {x:"xx"}); ipcRenderer.send('pot_real_open', {x:"xx"});
@ -20,6 +21,4 @@ $(function() {
$('body').on( "mouseenter",function () { $('body').on( "mouseenter",function () {
$('.navbar').css('opacity',"1") $('.navbar').css('opacity',"1")
}); });
}) })

13
src/app/js/shared.js Normal file
View File

@ -0,0 +1,13 @@
var shared = {};
var test = "";
shared.setLog = (text)=>{
test = text;
}
shared.log = ()=>{
console.log(test);
}
module.exports = shared;

View File