File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ const SidebarProvider = ({
19
19
const shouldDisplayFullScreen = useWindowSize ( ) . width < breakpoints . large . minWidth ;
20
20
const shouldDisplaySidebarOpen = useWindowSize ( ) . width > breakpoints . medium . minWidth ;
21
21
const showNotificationsOnLoad = getSessionStorage ( `notificationTrayStatus.${ courseId } ` ) !== 'closed' ;
22
+ const query = new URLSearchParams ( window . location . search ) ;
23
+ if ( query . get ( 'sidebar' ) === 'true' ) {
24
+ localStorage . setItem ( 'showDiscussionSidebar' , true ) ;
25
+ }
22
26
const showDiscussionSidebar = localStorage . getItem ( 'showDiscussionSidebar' ) !== 'false' ;
23
27
const showNotificationSidebar = ( verifiedMode && shouldDisplaySidebarOpen && showNotificationsOnLoad )
24
28
? SIDEBARS . NOTIFICATIONS . ID
You can’t perform that action at this time.
0 commit comments