replacing

This commit is contained in:
Lone Iversen
2023-11-09 09:57:52 +01:00
committed by Jacob Overgaard
parent ebef6297dd
commit 40c9186ff2
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export class UmbScriptsWorkspaceEditElement extends UmbLitElement {
this.observe(this.#scriptsWorkspaceContext.path, (path) => {
this._path = path;
this._dirName = this._path?.substring(0, this._path?.lastIndexOf('\\') + 1)?.replace('\\', '/');
this._dirName = this._path?.substring(0, this._path?.lastIndexOf('\\'))?.replace(/\\/g, '/');
});
this.observe(this.#scriptsWorkspaceContext.isNew, (isNew) => {

View File

@@ -48,7 +48,7 @@ export class UmbStylesheetWorkspaceEditorElement extends UmbLitElement {
this.#workspaceContext.path,
(path) => {
this._path = path;
this._dirName = this._path?.substring(0, this._path?.lastIndexOf('\\') + 1)?.replace('\\', '/');
this._dirName = this._path?.substring(0, this._path?.lastIndexOf('\\') + 1)?.replace(/\\/g, '/');
},
'_observeStylesheetPath',
);