Merge pull request #5380 from matrix-org/t3chguy/fix/15597

Fix regression with OpenID permissions on widgets
pull/21833/head
Michael Telatynski 2020-10-30 22:01:41 +00:00 committed by GitHub
commit 574d390a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ export class StopGapWidget extends EventEmitter {
// Actually ask for permission to send the user's data
Modal.createTrackedDialog("OpenID widget permissions", '', WidgetOpenIDPermissionsDialog, {
widgetUrl: rawUrl.substr(0, rawUrl.lastIndexOf("?")),
widgetUrl: rawUrl.includes("?") ? rawUrl.substr(0, rawUrl.indexOf("?")) : rawUrl,
widgetId: this.widgetId,
isUserWidget: this.appTileProps.userWidget,