(version)
| 14 | this.state = {version, versions, production}; |
| 15 | } |
| 16 | handleVersionChange(version) { |
| 17 | const query = parse(window.location.search); |
| 18 | query.version = version; |
| 19 | if (query.version === 'local') { |
| 20 | delete query.version; |
| 21 | } |
| 22 | window.location.search = stringify(query); |
| 23 | } |
| 24 | handleProductionChange(event) { |
| 25 | const query = parse(window.location.search); |
| 26 | query.production = event.target.checked; |