We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d9c96 commit b9f1dacCopy full SHA for b9f1dac
dev/src/RegExr.js
@@ -52,7 +52,7 @@ export default class RegExr extends EventDispatcher {
52
if (state === false) {
53
this._localInit();
54
} else if (this.account.authenticated && !state) {
55
- this.newDoc();
+ this.newDoc(false);
56
} else {
57
this.state = state;
58
}
@@ -120,8 +120,8 @@ export default class RegExr extends EventDispatcher {
120
this._savedHash = this.hash;
121
122
123
- newDoc() {
124
- this.load({flavor: this.flavor.value, expression: ".", text:"Text"});
+ newDoc(warn=true) {
+ this.load({flavor: this.flavor.value, expression: ".", text:"Text"}, warn);
125
this.expression.selectAll();
126
127
0 commit comments