One positive LIKE/EXISTS fragment for a search clause
(field, rawValue, params)
| 3215 | webSecurity: true // Keep web security enabled, but allow puter.com API calls |
| 3216 | } |
| 3217 | }); |
| 3218 | // mainWindow.webContents.openDevTools() // Disabled - prevents auto-opening debug console on load |
| 3219 | |
| 3220 | // Allow puter.com API requests (handle CORS if needed) |
| 3221 | mainWindow.webContents.session.webRequest.onBeforeSendHeaders( |
| 3222 | { urls: ['https://api.puter.com/*', 'https://js.puter.com/*'] }, |
| 3223 | (details, callback) => { |
| 3224 | // Add headers for puter.com API requests |
| 3225 | details.requestHeaders['Origin'] = 'https://puter.com'; |
| 3226 | details.requestHeaders['Referer'] = 'https://puter.com/'; |
| 3227 | callback({ requestHeaders: details.requestHeaders }); |
| 3228 | } |
| 3229 | ); |
| 3230 | |
| 3231 | const template = [ |
| 3232 | { |
| 3233 | label: 'File', |
| 3234 | submenu: [ |
| 3235 | { |
| 3236 | label: 'Reload', |
| 3237 | click: () => mainWindow.webContents.reload() |
| 3238 | }, |
| 3239 | { type: 'separator' }, |
| 3240 | { role: 'quit' } |
| 3241 | ] |
| 3242 | }, |
| 3243 | { |
| 3244 | label: 'Edit', |
| 3245 | submenu: [ |
| 3246 | { role: 'undo' }, |
| 3247 | { role: 'redo' }, |
| 3248 | { type: 'separator' }, |
| 3249 | { role: 'cut' }, |
| 3250 | { role: 'copy' }, |
| 3251 | { role: 'paste' }, |
| 3252 | { role: 'pasteAndMatchStyle' }, |
| 3253 | { role: 'delete' }, |
| 3254 | { role: 'selectAll' } |
| 3255 | ] |
| 3256 | }, |
| 3257 | { |
| 3258 | label: 'Settings', |
| 3259 | submenu: [ |
| 3260 | { |
no outgoing calls
no test coverage detected