Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3536056
D8704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8704.diff
View Options
diff --git a/keyserver/src/responders/website-responders.js b/keyserver/src/responders/website-responders.js
--- a/keyserver/src/responders/website-responders.js
+++ b/keyserver/src/responders/website-responders.js
@@ -196,12 +196,11 @@
'default communityPickerStore',
_isEqual({ chat: null, calendar: null }),
),
- urlPrefix: tString(''),
+ urlPrefix: t.String,
windowDimensions: t.irreducible(
'default windowDimensions',
_isEqual({ width: 0, height: 0 }),
),
- baseHref: t.String,
notifPermissionAlertInfo: t.irreducible(
'default notifPermissionAlertInfo',
_isEqual(defaultNotifPermissionAlertInfo),
@@ -267,7 +266,7 @@
const appURLFacts = getAppURLFactsFromRequestURL(req.originalUrl);
const { basePath, baseDomain } = appURLFacts;
const baseURL = basePath.replace(/\/$/, '');
- const baseHref = baseDomain + baseURL;
+ const urlPrefix = baseDomain + baseURL;
const loadingPromise = getWebpackCompiledRootComponentForSSR();
const hasNotAcknowledgedPoliciesPromise = hasAnyNotAcknowledgedPolicies(
@@ -581,10 +580,8 @@
loadingStatuses: {},
calendarFilters: defaultCalendarFilters,
communityPickerStore: { chat: null, calendar: null },
- // We can use paths local to the <base href> on web
- urlPrefix: '',
+ urlPrefix,
windowDimensions: { width: 0, height: 0 },
- baseHref,
notifPermissionAlertInfo: defaultNotifPermissionAlertInfo,
connection: (async () => ({
...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone),
diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js
--- a/web/redux/redux-setup.js
+++ b/web/redux/redux-setup.js
@@ -83,7 +83,6 @@
+urlPrefix: string,
+windowDimensions: WindowDimensions,
+deviceToken: ?string,
- +baseHref: string,
+notifPermissionAlertInfo: NotifPermissionAlertInfo,
+connection: ConnectionInfo,
+watchedThreadIDs: $ReadOnlyArray<string>,
diff --git a/web/selectors/socket-selectors.js b/web/selectors/socket-selectors.js
--- a/web/selectors/socket-selectors.js
+++ b/web/selectors/socket-selectors.js
@@ -29,7 +29,7 @@
import type { AppState } from '../redux/redux-setup.js';
const openSocketSelector: (state: AppState) => () => WebSocket = createSelector(
- (state: AppState) => state.baseHref,
+ (state: AppState) => state.urlPrefix,
createOpenSocketFunction,
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 5:21 PM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2707716
Default Alt Text
D8704.diff (2 KB)
Attached To
Mode
D8704: [keyserver, web] Remove baseHref field
Attached
Detach File
Event Timeline
Log In to Comment