diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 23:04:37 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 23:04:37 -0500 |
| commit | 1b1987f28df0eaf3f47fc5833e17a803f7ba1b8c (patch) | |
| tree | c031c736008dbb52ec591aa1c1ed1aed85647306 /static/src/connector.js | |
| parent | 4be4fd53b3f71d1da55fc7f4c31640bf6f1c4992 (diff) | |
| download | immich-frame-1b1987f28df0eaf3f47fc5833e17a803f7ba1b8c.tar.xz immich-frame-1b1987f28df0eaf3f47fc5833e17a803f7ba1b8c.zip | |
make frontend work with backend and wait until album response recieved before initializing albums page. extra checks around config
Diffstat (limited to 'static/src/connector.js')
| -rw-r--r-- | static/src/connector.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/static/src/connector.js b/static/src/connector.js index 5d8b62f..9568dc8 100644 --- a/static/src/connector.js +++ b/static/src/connector.js @@ -37,12 +37,12 @@ class APIConnector { }) .catch(error => { console.error("Fetch error:", error) + return null }) } async assetDownload(key) { const filename = await this.assetFileName(key) - console.log(filename) fetch(this.assetFullsizeSrc(key)) .then(response => { if (!response.ok) @@ -59,6 +59,7 @@ class APIConnector { }) .catch(error => { console.error("Fetch error:", error) + return null }) } @@ -87,5 +88,5 @@ class APIConnector { assetFileName(key) { return this.fetch(`/asset/${key}/filename`).then(d => d.filename) } } -const apiConnector = new APIConnector("http://localhost:5000") +const apiConnector = new APIConnector(window.location.origin) export default apiConnector |
