File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ function ErrorPage({ resource }: ResourcePageProps): JSX.Element {
2020
2121 React . useEffect ( ( ) => {
2222 // Try again when agent changes
23- store . fetchResource ( subject ) ;
23+ store . fetchResourceFromServer ( subject ) ;
2424 } , [ agent ] ) ;
2525
2626 if ( isUnauthorized ( resource . error ) ) {
2727 // This might be a bit too aggressive, but it fixes 'Unauthorized' messages after signing in to a new drive.
28- store . fetchResource ( subject ) ;
28+ store . fetchResourceFromServer ( subject ) ;
2929
3030 return (
3131 < ContainerWide >
Original file line number Diff line number Diff line change @@ -96,8 +96,7 @@ const setCookieExpires = (
9696} ;
9797
9898/** Sets a cookie for the current Agent, signing the Authentication. It expires after some default time. */
99- export const setCookieAuthentication = ( store : Store , agent : Agent ) => {
100- const serverURL = store . getServerUrl ( ) ;
99+ export const setCookieAuthentication = ( serverURL : string , agent : Agent ) => {
101100 createAuthentication ( serverURL , agent ) . then ( auth => {
102101 setCookieExpires ( COOKIE_NAME_AUTH , btoa ( JSON . stringify ( auth ) ) , serverURL ) ;
103102 } ) ;
Original file line number Diff line number Diff line change 99 ErrorType ,
1010 JSONADParser ,
1111 parseCommit ,
12- parseJsonADArray ,
13- parseJsonADResource ,
14- removeCookieAuthentication ,
1512 Resource ,
1613 serializeDeterministically ,
1714 setCookieAuthentication ,
You can’t perform that action at this time.
0 commit comments