()
| 146 | } |
| 147 | |
| 148 | function start() { |
| 149 | if (target === "browser") { |
| 150 | system.isPowerSaveMode((res) => { |
| 151 | if (res) { |
| 152 | alert(strings.info, strings["powersave mode warning"]); |
| 153 | } else { |
| 154 | startServer(); |
| 155 | } |
| 156 | }, startServer); |
| 157 | } else { |
| 158 | startServer(); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | function startServer() { |
| 163 | webServer?.stop(); |
no test coverage detected