MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / showErrorDialog

Function showErrorDialog

runtime/src/js/pgadmin.js:162–182  ·  view source on GitHub ↗
(timeoutID)

Source from the content-addressed store, hash-verified

160}
161
162function 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
184function reloadApp() {
185 const currWin = BrowserWindow.getFocusedWindow();

Callers 2

startDesktopModeFunction · 0.85
performPingFunction · 0.85

Calls 4

loadFileMethod · 0.80
joinMethod · 0.80
isVisibleMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected