File size: 778 Bytes
e4a10af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
const { ipcRenderer } = require('electron')
window.$ = window.jQuery = require('jquery');
window.popper = require("popper.js");
require("bootstrap");
const submitButton = document.getElementById('submitButton');
const inputTextarea = document.getElementById('inputTextarea');
//const electron = require('electron')
submitButton.addEventListener('click', () => {
const inputData = inputTextarea.value;
ipcRenderer.send('submitData', inputData);
});
// ์ด ๋ถ๋ถ์ ๋ธ๋ผ์ฐ์ ํ๊ฒฝ์์ ์คํ๋๋๋ก ์กฐ๊ฑด ์ฒ๋ฆฌํฉ๋๋ค.
if (window.process && window.process.type) {
// Node.js API๋ฅผ ์ฌ์ฉํ ์ ์๋ ๋ธ๋ผ์ฐ์ ํ๊ฒฝ์์๋ require ํจ์๋ฅผ ์ญ์ ํฉ๋๋ค.
delete window.require;
delete window.exports;
delete window.module;
}
|