From c6775888d44ef88516cc7db077ed2847e96623fc Mon Sep 17 00:00:00 2001 From: Brian Joseph Petro Date: Mon, 3 Feb 2025 10:21:49 -0500 Subject: [PATCH] Update environment variable access and add .gitignore --- .gitignore | 3 +++ main.ts | 2 +- package-lock.json | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..711f335 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +.env +main.js \ No newline at end of file diff --git a/main.ts b/main.ts index 99bc75a..3a9ab2a 100644 --- a/main.ts +++ b/main.ts @@ -326,7 +326,7 @@ class ScGraphItemView extends ItemView { return label.length > this.maxLabelCharacters ? label.slice(0, this.maxLabelCharacters) + '...' : label; } - get env() { return window.SmartSearch?.main?.env; } + get env() { return window.smart_env; } get smartNotes() { return window.SmartSearch?.main?.env?.smart_sources?.items; } diff --git a/package-lock.json b/package-lock.json index 1005ab7..709067f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "smart-connections-visualizer", - "version": "1.0.18", + "version": "1.0.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "smart-connections-visualizer", - "version": "1.0.18", + "version": "1.0.19", "license": "MIT", "dependencies": { "bootstrap": "^5.3.3",