Skip to content

Commit b42acc4

Browse files
committed
fix: popup is third argument
1 parent c10544d commit b42acc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/pods/components/intermediate-contest-view/component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ export default class IntermediateContestComponent extends Component {
117117
}
118118

119119
@action async openTestInNewWindow() {
120-
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup')
120+
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, '_blank', 'popup')
121121
}
122122
}

app/pods/contests/contest/index/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ export default class IndexController extends Controller {
6262
}
6363
@action
6464
onAfterCreate() {
65-
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup')
65+
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, '_blank', 'popup')
6666
}
6767
}

0 commit comments

Comments
 (0)