bug fixed
This commit is contained in:
parent
6f4c450b33
commit
4711ff4f8b
|
@ -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>
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user