We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0193ec3 commit af0b52cCopy full SHA for af0b52c
src/pages/home/previews/url.tsx
@@ -13,7 +13,13 @@ export default function () {
13
const { text } = useParseText(ini)
14
const config = recordKeysToLowerCase(parse(text()))
15
const url = config.internetshortcut?.url
16
- url && window.open(url, "_blank")
+ if (url) {
17
+ const a = document.createElement("a")
18
+ a.href = url
19
+ a.rel = "noopener noreferrer"
20
+ a.target = "_blank"
21
+ a.click()
22
+ }
23
}
24
createEffect(() => {
25
openInNewWindow()
0 commit comments