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="X-UA-Compatible" content="IE=edge" />
|
||||
<script type="text/javascript">
|
||||
function onLoad() {
|
||||
function onClick() {
|
||||
const url = '${targetUrl}';
|
||||
const options = ${options} || {};
|
||||
|
||||
window.open(url, !!options.name ? options.name : 'dstalklink', options.features, options.replace);
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="onLoad()"></body>
|
||||
<body><button onclick="onClick()">링크열기<button></body>
|
||||
</html>
|
||||
`
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user