Skip to content

TagSpaces is an offline, open source, document manager with tagging support

add ExtDefaultMapBounds

sytolk7c015f35093e
diff --git a/src/renderer/AppConfig.ts b/src/renderer/AppConfig.ts
index 4aa8c260d..c36448732 100644
--- a/src/renderer/AppConfig.ts
+++ b/src/renderer/AppConfig.ts
@@ -171,9 +171,12 @@ AppConfig.defaultFileColor = '#33b5be';
AppConfig.defaultCSSRadius = 10;
AppConfig.defaultSpaceBetweenButtons = 10;
AppConfig.aiFolder = 'ai';
-AppConfig.defaultMapBounds = {
- southWest: { lat: 56, lng: -13 },
- northEast: { lat: 29, lng: 50 },
-};
+AppConfig.defaultMapBounds =
+ typeof window !== 'undefined' && window.ExtDefaultMapBounds !== undefined
+ ? window.ExtDefaultMapBounds
+ : {
+ southWest: { lat: 56, lng: -13 },
+ northEast: { lat: 29, lng: 50 },
+ };
export default AppConfig;
diff --git a/src/renderer/tagspaces.d.ts b/src/renderer/tagspaces.d.ts
index 6530e8a54..9ca2f3d0d 100644
--- a/src/renderer/tagspaces.d.ts
+++ b/src/renderer/tagspaces.d.ts
@@ -73,6 +73,7 @@ declare interface Window {
ExtSupportedFileTypes?: Array<any>;
ExtExtensionsFound?: Array<any>;
ExtSearchTypeGroups?: any;
+ ExtDefaultMapBounds?: any;
}
declare interface NodeModule {