Add test for native addon after reload

This commit is contained in:
Ryohei Ikegami 2017-04-06 11:43:57 +09:00
parent 526086d900
commit 349ea3a15a
2 changed files with 17 additions and 2 deletions

View file

@ -15,6 +15,10 @@
const content = popup.document.querySelector('h1').innerText;
ipcRenderer.send('answer', content);
};
},
'native-addon': () => {
const runas = require('runas');
ipcRenderer.send('answer', typeof runas);
}
}
const test = location.hash.slice(1);