@flowfuse/nr-launcher
Advanced tools
Comparing version 2.8.1-27ea96b-202409181458.0 to 2.8.1-44eb2a4-202409231501.0
@@ -173,8 +173,12 @@ const path = require('path') | ||
staticSetting.path = path.normalize(path.join(settings.storageDir, staticSetting.path)) | ||
if (staticSetting.path.startsWith(settings.storageDir)) { | ||
httpStatic.push(staticSetting) | ||
if (staticSetting.path.startsWith(settings.storageDir) && staticSetting.root) { | ||
httpStatic.push('{' + | ||
'path: ' + JSON.stringify(staticSetting.path) + ',' + | ||
'root: ' + JSON.stringify(staticSetting.root) + | ||
(authMiddlewareRequired ? ', middleware: flowforgeAuthMiddleware' : '') + | ||
'}') | ||
} | ||
}) | ||
if (httpStatic.length > 0) { | ||
projectSettings.httpStatic = httpStatic | ||
projectSettings.httpStatic = '[' + httpStatic.join(', ') + ']' | ||
} | ||
@@ -379,3 +383,3 @@ } | ||
${projectSettings.uibuilder ? 'uibuilder: ' + JSON.stringify(projectSettings.uibuilder) + ',' : ''} | ||
${projectSettings.httpStatic ? 'httpStatic: ' + JSON.stringify(projectSettings.httpStatic) : ''} | ||
${projectSettings.httpStatic ? 'httpStatic: ' + projectSettings.httpStatic : ''} | ||
} | ||
@@ -382,0 +386,0 @@ ` |
@@ -29,2 +29,14 @@ (function () { | ||
} | ||
const interceptLogOutClick = (url) => { | ||
document.querySelector('#usermenu-item-logout') | ||
.addEventListener('click', (e) => { | ||
e.preventDefault() | ||
e.stopPropagation() | ||
if (context.shouldEmitInsteadOfRedirect) { | ||
window.parent.postMessage({ | ||
type: 'logout' | ||
}, '*') | ||
} | ||
}) | ||
} | ||
@@ -106,3 +118,3 @@ function changeFavicon (src) { | ||
} | ||
interceptLogOutClick() | ||
interceptLogoClick(projectURL) | ||
@@ -109,0 +121,0 @@ }) |
{ | ||
"name": "@flowfuse/nr-launcher", | ||
"version": "2.8.1-27ea96b-202409181458.0", | ||
"version": "2.8.1-44eb2a4-202409231501.0", | ||
"description": "FlowFuse Launcher for running Node-RED", | ||
@@ -5,0 +5,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
566786
3547