chore: move window.open to platform io to handle desktop app

This commit is contained in:
Andrew Bastin
2023-12-19 11:26:37 +05:30
parent f28298afe7
commit 5ad8f6c2ce
6 changed files with 21 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ const GqlCollectionsGistExporter: ImporterOrExporter = {
exporter: "gist",
})
window.open(res.right, "_blank")
platform.io.openExternalLink(res.right)
}
},
}

View File

@@ -297,7 +297,7 @@ const HoppEnvironmentsGistExporter: ImporterOrExporter = {
platform: "rest",
})
window.open(res.right, "_blank")
platform.io.openExternalLink(res.right)
}
},
}