Skip to content

Commit a0a1d7d

Browse files
committed
Remove references to Subscribe widget
1 parent 6c659f3 commit a0a1d7d

18 files changed

Lines changed: 36 additions & 1273 deletions

api/src/api/resources/oidc_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def get():
4242
class OIDCConfigAsJs(Resource):
4343
"""Resource for OpenID Connect configuration in JavaScript format."""
4444

45-
js_prefix = 'window._env_ = window._env_ || {};\n'
46-
js_template = "window._env_.{VAR_NAME} = '{VAR_VALUE}';\n"
45+
js_prefix = 'globalThis._env_ = globalThis._env_ || {};\n'
46+
js_template = "globalThis._env_.{VAR_NAME} = '{VAR_VALUE}';\n"
4747

4848
@staticmethod
4949
@cross_origin(origins=allowedorigins())

web/nginx/config.js.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
window._env_ = window._env_ || {};
1+
globalThis._env_ = globalThis._env_ || {};
22
$REACT_APP_VARS_JS

web/nginx/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ REACT_APP_VARS_JS=$(
2222
env |
2323
# that starts with REACT_APP_,
2424
grep -E '^REACT_APP_' |
25-
# Create a string of the form "window._env_.REACT_APP_VAR_NAME' = 'REACT_APP_VAR_VALUE';"
26-
sed -E "s/^(REACT_APP_[^=]+)=(.*)/window._env_.\1 = '\2';/" |
25+
# Create a string of the form "globalThis._env_.REACT_APP_VAR_NAME' = 'REACT_APP_VAR_VALUE';"
26+
sed -E "s/^(REACT_APP_[^=]+)=(.*)/globalThis._env_.\1 = '\2';/" |
2727
# Join the lines with a newline character,
2828
awk '{printf "%s\n", $0}' |
2929
# then remove the last newline character

web/src/components/engagement/form/EngagementWidgets/Subscribe/EmailListFormDrawer.tsx

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)