We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9880633 commit 8384af3Copy full SHA for 8384af3
src/pages/index.tsx
@@ -68,11 +68,9 @@ export default function Home(): JSX.Element {
68
onClick={async () => {
69
console.log(`clicked ${ex.title}`);
70
const url = ex.url;
71
- if (is_offline && ex.dialog) {
72
- const dialog = ex.dialog;
73
- if (dialog) {
74
- alert(dialog);
75
- }
+ const dialog = ex.dialog;
+ if (is_offline && dialog) {
+ alert(dialog);
76
} else if (url) {
77
window.open(url, "_blank").focus();
78
// CORS の関係でエラーが出るが、特に問題ないので放置。
0 commit comments