Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Gary Kim <gary@garykim.dev>
  • Loading branch information
jonathanmmm and gary-kim authored May 24, 2022
1 parent 40bf9ac commit 204e6d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<label
ref="sso_force_iframe"
for="sso_force_iframe"
>{{ t('riotchat', 'Force iframe (to use with SSO or CAS set the headers to let it be iframed in nextcloud)') }}</label>
>{{ t('riotchat', 'Disable redirect to non-iframed version for SSO (make sure to set the headers to allow the SSO or CAS to be iframed)') }}</label>
<br>
<input
id="disable_login_language_selector"
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function onIframeLoad () {
};

// Setting sso_force_iframe (in config) to true forces iframe even if using SSO or CAS login
if (loadState('riotchat', 'sso_force_iframe') !== 'false') {
if (loadState('riotchat', 'sso_force_iframe') !== 'true') {
// Watch for the localStorage change that indicates that an SSO sign in is being attempted
// eslint-disable-next-line no-proto
iframe.contentWindow.localStorage.__proto__.setItem = function (...params) {
Expand Down

0 comments on commit 204e6d6

Please sign in to comment.