Remove unused network share references

This commit is contained in:
Bill Thornton
2025-11-18 16:40:37 -05:00
parent 2d7a38c9cc
commit 699e749a49
4 changed files with 15 additions and 37 deletions
@@ -122,9 +122,9 @@ function onAddButtonClick() {
import('../directorybrowser/directorybrowser').then(({ default: DirectoryBrowser }) => {
const picker = new DirectoryBrowser();
picker.show({
callback: function (path, networkSharePath) {
callback: function (path) {
if (path) {
addMediaLocation(page, path, networkSharePath);
addMediaLocation(page, path);
}
picker.close();
@@ -161,7 +161,7 @@ function renderPaths(page) {
}
}
function addMediaLocation(page, path, networkSharePath) {
function addMediaLocation(page, path) {
const pathLower = path.toLowerCase();
const pathFilter = pathInfos.filter(p => {
return p.Path.toLowerCase() == pathLower;
@@ -172,10 +172,6 @@ function addMediaLocation(page, path, networkSharePath) {
Path: path
};
if (networkSharePath) {
pathInfo.NetworkPath = networkSharePath;
}
pathInfos.push(pathInfo);
renderPaths(page);
}