From b42acc47efc3e57d157a7cead4702fcbec06539d Mon Sep 17 00:00:00 2001 From: Vibhu Dujari Date: Tue, 14 May 2024 18:11:31 +0530 Subject: [PATCH] fix: popup is third argument --- app/pods/components/intermediate-contest-view/component.js | 2 +- app/pods/contests/contest/index/controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pods/components/intermediate-contest-view/component.js b/app/pods/components/intermediate-contest-view/component.js index 2768499..9091e5d 100644 --- a/app/pods/components/intermediate-contest-view/component.js +++ b/app/pods/components/intermediate-contest-view/component.js @@ -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') } } diff --git a/app/pods/contests/contest/index/controller.js b/app/pods/contests/contest/index/controller.js index 16de815..9cafa9b 100644 --- a/app/pods/contests/contest/index/controller.js +++ b/app/pods/contests/contest/index/controller.js @@ -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') } }