File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ class ServerPromise {
195
195
}
196
196
}
197
197
198
- Server . isLocal = ( window . location . hostname === "localhost" ) ;
198
+ Server . isLocal = Utils . isLocal ;
199
199
Server . useBeta = Server . isLocal || ( window . location . hostname === "beta.regexr.com" ) ;
200
200
Server . host = "https://" + ( Server . useBeta ? "beta." : "" ) + "regexr.com"
201
201
Server . url = Server . host + "/server/api.php" ;
Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ Utils.getPatternURL = function(pattern) {
154
154
return url + id ;
155
155
}
156
156
157
+ Utils . isLocal = ( window . location . hostname === "localhost" ) ;
158
+
157
159
Utils . getPatternURLStr = function ( pattern ) {
158
160
if ( ! pattern || ! pattern . id ) { return null ; }
159
161
let url = window . location . host + "/" , id = pattern . id ;
You can’t perform that action at this time.
0 commit comments