Remove unused network share references
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user