Skip to content

Commit

Permalink
Apply window height style to root document (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hobbs committed Jun 5, 2020
1 parent eed5526 commit 2321761
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/passwordless.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import Core, { injectStyles, css } from './core';
import Core, { injectStyles, setWindowHeightStyle } from './core';
import passwordless from './engine/passwordless';

export default class Auth0LockPasswordless extends Core {
constructor(clientID, domain, options) {
super(clientID, domain, options, passwordless);
injectStyles();
setWindowHeightStyle();

window.addEventListener('resize', () => {
setWindowHeightStyle();
});
}
}

Expand Down

0 comments on commit 2321761

Please sign in to comment.