Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
handle weird redirect event
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 5, 2022
1 parent 6cc5ce1 commit 622a6ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/background/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ async function createWindow() {

const handleRedirect = (e, url) => {
try {
url = url || e.url;
if (url.startsWith('http') && url !== mainWindow.webContents.getURL()) {
shell.openExternal(url);

Expand Down
2 changes: 1 addition & 1 deletion src/components/contracts/ContractGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<div :class="getTagClasses(tag)" v-for="(tag, i) in contract.tags" :key="i">{{ tag.text }}</div>
</div>
</td>
<td class="fit-text"><a :href="getSiaStatsLink(contract)" target="_blank"><icon icon="external-link-alt" />SiaStats</a></td>
<td class="fit-text"><a :href="getSiaStatsLink(contract)"><icon icon="external-link-alt" />SiaStats</a></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 622a6ef

Please sign in to comment.