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 {
20
20
21
21
React . useEffect ( ( ) => {
22
22
// Try again when agent changes
23
- store . fetchResource ( subject ) ;
23
+ store . fetchResourceFromServer ( subject ) ;
24
24
} , [ agent ] ) ;
25
25
26
26
if ( isUnauthorized ( resource . error ) ) {
27
27
// 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 ) ;
29
29
30
30
return (
31
31
< ContainerWide >
Original file line number Diff line number Diff line change @@ -96,8 +96,7 @@ const setCookieExpires = (
96
96
} ;
97
97
98
98
/** 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 ) => {
101
100
createAuthentication ( serverURL , agent ) . then ( auth => {
102
101
setCookieExpires ( COOKIE_NAME_AUTH , btoa ( JSON . stringify ( auth ) ) , serverURL ) ;
103
102
} ) ;
Original file line number Diff line number Diff line change 9
9
ErrorType ,
10
10
JSONADParser ,
11
11
parseCommit ,
12
- parseJsonADArray ,
13
- parseJsonADResource ,
14
- removeCookieAuthentication ,
15
12
Resource ,
16
13
serializeDeterministically ,
17
14
setCookieAuthentication ,
You can’t perform that action at this time.
0 commit comments