bug fixed

This commit is contained in:
richard-loafle 2020-02-12 17:37:01 +09:00
parent 6f4c450b33
commit 4711ff4f8b

View File

@ -794,15 +794,16 @@ ipcMain.on(ExternalChannel.OpenUrl, (event: IpcMainEvent, ...args: any[]) => {
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script type="text/javascript"> <script type="text/javascript">
function onLoad() { function onClick() {
const url = '${targetUrl}'; const url = '${targetUrl}';
const options = ${options} || {}; const options = ${options} || {};
window.open(url, !!options.name ? options.name : 'dstalklink', options.features, options.replace); window.open(url, !!options.name ? options.name : 'dstalklink', options.features, options.replace);
window.close();
} }
</script> </script>
</head> </head>
<body onload="onLoad()"></body> <body><button onclick="onClick()"><button></body>
</html> </html>
` `
); );