lnlink-server 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1 -1
- package/dist/build-info.json +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/public/js/init.js +13 -2
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/public/js/init.js
CHANGED
|
@@ -287,9 +287,10 @@ function renderConfiguredView(basicData, settings, torReachable) {
|
|
|
287
287
|
console.log("renderConfiguredView called with:", { basicData, settings })
|
|
288
288
|
const mainContent = document.getElementById("main-content")
|
|
289
289
|
|
|
290
|
-
// Extract Node ID
|
|
290
|
+
// Extract Node ID — use the actual LND node pubkey from /api/lnd/info.
|
|
291
|
+
// settings.officialNostrPubKey is a remote-registered key, not the local node identity.
|
|
291
292
|
const nodeId
|
|
292
|
-
= settings.officialNostrPubKey || basicData.officialNostrPubKey || "Unknown"
|
|
293
|
+
= basicData.nodeId || settings.officialNostrPubKey || basicData.officialNostrPubKey || "Unknown"
|
|
293
294
|
|
|
294
295
|
// Get Tor status from basicData
|
|
295
296
|
const enableTor
|
|
@@ -581,6 +582,16 @@ window.navigateToManage = function navigateToManage(url, button) {
|
|
|
581
582
|
button.classList.add("loading-state")
|
|
582
583
|
button.innerHTML = `<span class="loading"></span> Loading...`
|
|
583
584
|
|
|
585
|
+
// Clear stale localStorage before navigating so the target page doesn't
|
|
586
|
+
// pick up a previous session's owner/node data. Keep cachedVersion.
|
|
587
|
+
try {
|
|
588
|
+
const preserved = localStorage.getItem('cachedVersion')
|
|
589
|
+
localStorage.clear()
|
|
590
|
+
if (preserved !== null) localStorage.setItem('cachedVersion', preserved)
|
|
591
|
+
} catch (e) {
|
|
592
|
+
// non-fatal
|
|
593
|
+
}
|
|
594
|
+
|
|
584
595
|
// Allow UI to render before navigation
|
|
585
596
|
requestAnimationFrame(() => {
|
|
586
597
|
setTimeout(() => {
|