(timeoutID)
| 160 | } |
| 161 | |
| 162 | function showErrorDialog(timeoutID) { |
| 163 | if(!splashWindow.isVisible()) { |
| 164 | return; |
| 165 | } |
| 166 | clearTimeout(timeoutID); |
| 167 | splashWindow.close(); |
| 168 | |
| 169 | new BrowserWindow({ |
| 170 | 'frame': true, |
| 171 | 'width': 800, |
| 172 | 'height': 450, |
| 173 | 'position': 'center', |
| 174 | 'resizable': false, |
| 175 | 'focus': true, |
| 176 | 'show': true, |
| 177 | icon: '../../assets/pgAdmin4.png', |
| 178 | webPreferences: { |
| 179 | preload: path.join(__dirname, 'other_preload.js'), |
| 180 | }, |
| 181 | }).loadFile('./src/html/server_error.html'); |
| 182 | } |
| 183 | |
| 184 | function reloadApp() { |
| 185 | const currWin = BrowserWindow.getFocusedWindow(); |
no test coverage detected