Change: some node integration on rend-proc #86

This commit is contained in:
Cutls
2019-06-15 02:30:29 +09:00
parent 070c40a958
commit eba54d0906
4 changed files with 20 additions and 21 deletions

View File

@@ -1,6 +1,3 @@
//jQuery読む
window.jQuery = window.$ = require('../../js/common/jquery.js');
var Hammer = require('../../js/common/hammer.min.js');
$.strip_tags = function (str, allowed) {
if (!str) {
return "";

View File

@@ -243,12 +243,13 @@ ipc.on('prog', function (event, arg) {
ipc.on('mess', function (event, arg) {
updateMess(arg)
})
/*
//about.html
ipc.on('aboutData', function (event, arg) {
renderAbout(arg)
})
var webviewDom = document.getElementById('webview');
const {
shell
} = require('electron');
webviewDom.addEventListener('new-window', function (e) {
shell.openExternal(e.url);
});
*/
if(webviewDom){
webviewDom.addEventListener('new-window', function (e) {
shell.openExternal(e.url);
});
}