1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

cert and https

This commit is contained in:
Andrew Simachev 2022-07-01 12:23:19 +03:00
parent ad082b68ec
commit e8b55ebcc6
6 changed files with 68 additions and 18 deletions

View file

@ -32,6 +32,10 @@ class Util {
console.log(text);
};
dateForFile() {
return new Date().toISOString().replace(/:/g, '_').replace(/\..+/, '');
};
// MacOs 12.2 (M1): always returns false regardless current color theme
isDarkTheme () {
return nativeTheme.shouldUseDarkColors || nativeTheme.shouldUseHighContrastColors || nativeTheme.shouldUseInvertedColorScheme;
@ -93,8 +97,6 @@ class Util {
args.shift();
win.webContents.send.apply(win.webContents, args);
};
console.log('[Send]', args);
};
savePage (win, exportPath, name) {