Skip to content

Commit

Permalink
Avoid being stuck in options screen
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Nov 21, 2018
1 parent bb264d8 commit 712c9c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/options/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,13 @@ class Main extends React.Component {
try {
this.contentGenerator = new mdwindow.ContentGenerator(settings);
this.trialWindow = mdwindow.create(settings);
this.trialWindow.dialog.style.cursor = "zoom-out";
this.trialWindow.dialog.addEventListener("click", () => {
this.trialWindow.dialog.style.width = "100px";
this.trialWindow.dialog.style.height = "100px";
});
document.body.appendChild(this.trialWindow.dialog);

this.updateTrialText(settings);
} catch (e) {
this.contentGenerator = null;
Expand Down

0 comments on commit 712c9c4

Please sign in to comment.