Skip to content

Commit

Permalink
fix: popup is third argument
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed May 14, 2024
1 parent c10544d commit b42acc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/pods/components/intermediate-contest-view/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ export default class IntermediateContestComponent extends Component {
}

@action async openTestInNewWindow() {
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup')
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, '_blank', 'popup')
}
}
2 changes: 1 addition & 1 deletion app/pods/contests/contest/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ export default class IndexController extends Controller {
}
@action
onAfterCreate() {
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup')
window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, '_blank', 'popup')
}
}

0 comments on commit b42acc4

Please sign in to comment.