@@ -28,6 +28,7 @@ import { StatsReportingService } from 'pages/exploration-player-page/services/st
28
28
import { Subscription } from 'rxjs' ;
29
29
import { ContextService } from 'services/context.service' ;
30
30
import { I18nLanguageCodeService } from 'services/i18n-language-code.service' ;
31
+ import { UrlService } from 'services/contextual/url.service' ;
31
32
32
33
import './hint-and-solution-buttons.component.css' ;
33
34
@@ -48,6 +49,7 @@ export class HintAndSolutionButtonsComponent implements OnInit, OnDestroy {
48
49
activeHintIndex ! : number | null ;
49
50
displayedCard ! : StateCard ;
50
51
hintIndexes : number [ ] = [ ] ;
52
+ iframed ! : boolean ;
51
53
solutionModalIsActive : boolean = false ;
52
54
currentlyOnLatestCard : boolean = true ;
53
55
isVisible : boolean = true ;
@@ -56,6 +58,7 @@ export class HintAndSolutionButtonsComponent implements OnInit, OnDestroy {
56
58
constructor (
57
59
private changeDetectorRef : ChangeDetectorRef ,
58
60
private contextService : ContextService ,
61
+ private urlService : UrlService ,
59
62
private explorationPlayerStateService : ExplorationPlayerStateService ,
60
63
private hintAndSolutionModalService : HintAndSolutionModalService ,
61
64
private hintsAndSolutionManagerService : HintsAndSolutionManagerService ,
@@ -67,6 +70,7 @@ export class HintAndSolutionButtonsComponent implements OnInit, OnDestroy {
67
70
68
71
ngOnInit ( ) : void {
69
72
this . _editorPreviewMode = this . contextService . isInExplorationEditorPage ( ) ;
73
+ this . iframed = this . urlService . isIframed ( ) ;
70
74
this . resetLocalHintsArray ( ) ;
71
75
this . directiveSubscriptions . add (
72
76
this . playerPositionService . onNewCardOpened . subscribe (
0 commit comments