Skip to content

Commit

Permalink
Fix reference to css background class names in popUpCreator
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMieskoski committed Apr 9, 2021
1 parent 44a378b commit bcc2d64
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- ### Release 2.1.23-beta.10
- Fix reference to css background class names in popUpCreator

### Release 2.1.23-beta.9
- Existence checks for retry button
- Fix css class naming to prevent css leaking into containing page
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@myetherwallet/mewconnect-web-client",
"homepage": "https://github.com/myetherwallet/MEWconnect-web-client",
"version": "2.1.23-beta.8",
"version": "2.1.23-beta.9",
"main": "./dist/index.js",
"module": "./src/index.js",
"scripts": {
Expand Down

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/connectWindow/popUpCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ export default class PopUpCreator extends EventEmitter{
hideDialog(evt) {
if (
document.querySelector('.mew-wallet-modal') &&
document.querySelector('.mew-wallet-modal-container')
document.querySelector('.mew-wallet-modal-container-mew-modal')
) {
document
.querySelector('.mew-wallet-modal')
.classList.remove('is-visible');
document
.querySelector('.mew-wallet-modal-container')
.querySelector('.mew-wallet-modal-container-mew-modal')
.classList.remove('is-visible');
document.querySelector('.modal-dialog').classList.remove('is-visible');
}
Expand All @@ -221,11 +221,11 @@ export default class PopUpCreator extends EventEmitter{
this.popupWindowOpen = true;
if (
document.querySelector('.mew-wallet-modal') &&
document.querySelector('.mew-wallet-modal-container')
document.querySelector('.mew-wallet-modal-container-mew-modal')
) {
document.querySelector('.mew-wallet-modal').classList.add('is-visible');
document
.querySelector('.mew-wallet-modal-container')
.querySelector('.mew-wallet-modal-container-mew-modal')
.classList.add('is-visible');
document.querySelector('.modal-dialog').classList.add('is-visible');
}
Expand Down Expand Up @@ -254,7 +254,7 @@ export default class PopUpCreator extends EventEmitter{
QrCode.toCanvas(element, qrcode, { errorCorrectionLevel: 'H', width: 200 });

const background = document.getElementById('mew-wallet-modal');
const background2 = document.getElementById('mew-wallet-modal-container');
const background2 = document.getElementById('mew-wallet-modal-container-mew-modal');
const dialog = document.getElementById('mew-mobile-modal-dialog');
document.getElementById('close-mew-modal').addEventListener('click', () => {
this.cancelConnectionSetup();
Expand Down

0 comments on commit bcc2d64

Please sign in to comment.