@flowfuse/nr-theme 1.9.1-fb5956f-202407081400.0 → 1.9.1-fbe9ae3-202511201042.0

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.
@@ -26,6 +26,18 @@
26
26
  navigateTo(url)
27
27
  })
28
28
  }
29
+ const interceptLogOutClick = (url) => {
30
+ document.querySelector('#usermenu-item-logout')
31
+ .addEventListener('click', (e) => {
32
+ e.preventDefault()
33
+ e.stopPropagation()
34
+ if (context.shouldEmitInsteadOfRedirect) {
35
+ window.parent.postMessage({
36
+ type: 'logout'
37
+ }, '*')
38
+ }
39
+ })
40
+ }
29
41
 
30
42
  function changeFavicon (src) {
31
43
  const link = document.createElement('link')
@@ -102,7 +114,7 @@
102
114
  }
103
115
  })
104
116
  }
105
-
117
+ interceptLogOutClick()
106
118
  interceptLogoClick(projectURL)
107
119
  })
108
120
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/nr-theme",
3
- "version": "1.9.1-fb5956f-202407081400.0",
3
+ "version": "1.9.1-fbe9ae3-202511201042.0",
4
4
  "description": "FlowFuse themes for Node-RED",
5
5
  "scripts": {
6
6
  "prepack": "node scripts/prepack.mjs",