MCPcopy
hub / github.com/jgraph/drawio-desktop / toggleGoogleFonts

Function toggleGoogleFonts

src/main/electron.js:1297–1306  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1295 ipcMain.on('toggleStoreBkp', toggleStoreBkp);
1296
1297 function toggleGoogleFonts(e)
1298 {
1299 if (e != null && !validateSender(e.senderFrame)) return null;
1300
1301 if (store != null)
1302 {
1303 isGoogleFontsEnabled = !isGoogleFontsEnabled;
1304 store.set('isGoogleFontsEnabled', isGoogleFontsEnabled);
1305 }
1306 }
1307
1308 ipcMain.on('toggleGoogleFonts', toggleGoogleFonts);
1309

Callers

nothing calls this directly

Calls 1

validateSenderFunction · 0.85

Tested by

no test coverage detected