Change: some node integration on rend-proc #86
This commit is contained in:
@@ -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 "";
|
||||
|
@@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user