Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Dec 14, 2023
2 parents 827ac09 + d41a6b9 commit b3f999c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Run build
run: |
. ./scripts/setup.sh
npm version minor -m 'Updating version to %s [skip ci]'
npm version patch -m 'Updating version to %s [skip ci]'
npm run build
. ./scripts/gitPush.sh
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Run build
run: |
. ./scripts/setup.sh
npm version minor -m 'Updating version to %s [skip ci]'
npm version patch -m 'Updating version to %s [skip ci]'
npm run build
. ./scripts/gitPush.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions scripts/updateIframeIntegrity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ git config user.name "torus-bot"
cd ~/torus-embed/

if [[ "$GITHUB_REF" = 'refs/heads/master' ]]; then
npm version minor -m 'Updating iframe integrity and publish %s'
npm version patch -m 'Updating iframe integrity and publish %s'
git push origin master
git push --tags
fi
if [[ "$GITHUB_REF" = 'refs/heads/binance' ]]; then
npm version minor -m 'Updating iframe integrity and publish %s'
npm version patch -m 'Updating iframe integrity and publish %s'
git push origin binance
fi
7 changes: 7 additions & 0 deletions src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,13 @@ export const parsePopupUrl = (url) => {
localUrl.searchParams.append('isCustomLogin', config.isCustomLogin)
if (config.isCustomLogin) {
localUrl.searchParams.append('sessionNamespace', iframeOrigin.hostname)
const sessionId = getSessionIdFromStorage()
// this is for torus wallet plugin
if (sessionId) {
const hashParams = new URLSearchParams()
hashParams.append('sessionId', sessionId)
localUrl.hash = hashParams.toString()
}
}
return localUrl
}
Expand Down

0 comments on commit b3f999c

Please sign in to comment.