@@ -741,38 +741,25 @@ Applab.init = function (config) {
741741 } . bind ( this ) ;
742742
743743 // Push initial level properties into the Redux store
744- studioApp . reduxStore . dispatch ( setPageConstants ( {
745- assetUrl : studioApp . assetUrl ,
744+ studioApp . setPageConstants ( config , {
746745 channelId : config . channel ,
747746 visualizationHasPadding : ! config . noPadding ,
748- hideSource : ! ! config . hideSource ,
749747 isDesignModeHidden : ! ! config . level . hideDesignMode ,
750- isEmbedView : ! ! config . embed ,
751748 isIframeEmbed : ! ! config . level . iframeEmbed ,
752- isReadOnlyWorkspace : ! ! config . readonlyWorkspace ,
753- isShareView : ! ! config . share ,
754749 isViewDataButtonHidden : ! ! config . level . hideViewDataButton ,
755750 isProjectLevel : ! ! config . level . isProjectLevel ,
756751 isSubmittable : ! ! config . level . submittable ,
757752 isSubmitted : ! ! config . level . submitted ,
758- instructionsMarkdown : config . level . markdownInstructions ,
759- instructionsInTopPane : config . showInstructionsInTopPane ,
760- puzzleNumber : config . level . puzzle_number ,
761- stageTotal : config . level . stage_total ,
762753 showDebugButtons : showDebugButtons ,
763754 showDebugConsole : showDebugConsole ,
764755 showDebugWatch : false ,
765- localeDirection : studioApp . localeDirection ( ) ,
766- isDroplet : true ,
767756 playspacePhoneFrame : ! config . share && experiments . isEnabled ( 'phoneFrame' )
768- } ) ) ;
757+ } ) ;
769758
770759 studioApp . reduxStore . dispatch ( changeInterfaceMode (
771760 Applab . startInDesignMode ( ) ? ApplabInterfaceMode . DESIGN : ApplabInterfaceMode . CODE ) ) ;
772761
773- // TODO (brent) hideSource should probably be part of initialLevelProps
774762 Applab . reactInitialProps_ = {
775- hideSource : ! ! config . hideSource ,
776763 onMount : onMount
777764 } ;
778765
0 commit comments