signalk-parquet
Version:
Vessel data Parquet file archive with automated value and geospatial triggers. History API compliant with cloud backups and queries.
12 lines (9 loc) • 334 B
JavaScript
export function getPluginPath() {
const currentPath = window.location.pathname;
const pathParts = currentPath.split('/');
const pluginIndex = pathParts.indexOf('plugins');
if (pluginIndex !== -1 && pathParts[pluginIndex + 1]) {
return `/plugins/${pathParts[pluginIndex + 1]}`;
}
return '/plugins/signalk-parquet';
}