replacing
This commit is contained in:
committed by
Jacob Overgaard
parent
ebef6297dd
commit
40c9186ff2
@@ -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) => {
|
||||
|
||||
@@ -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',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user