File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ export const setPreviewSecret = (secret: string | null) => {
2121 ) {
2222 if ( secret ) {
2323 document . cookie = `${ PREVIEW_SECRET_COOKIE_NAME } =${ secret } ` ;
24+ location . reload ( ) ;
2425 } else {
2526 document . cookie = `${ PREVIEW_SECRET_COOKIE_NAME } =; expires=Thu, 01 Jan 1970 00:00:01 GMT;` ;
2627 }
27- location . reload ( ) ;
2828 }
2929} ;
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ export const setPreviewSecret = secret => {
2323 ) {
2424 if ( secret ) {
2525 document . cookie = `${ PREVIEW_SECRET_COOKIE_NAME } =${ secret } ` ;
26+ location . reload ( ) ;
2627 } else {
2728 document . cookie = `${ PREVIEW_SECRET_COOKIE_NAME } =; expires=Thu, 01 Jan 1970 00:00:01 GMT;` ;
2829 }
29- location . reload ( ) ;
3030 }
3131} ;
3232
You can’t perform that action at this time.
0 commit comments