#202 Syntax sugar to satisfy stricter TS compilation rules and improve readability
This commit is contained in:
parent
5bb04f41a1
commit
1322dbab52
|
@ -707,8 +707,10 @@ export default class CustomSortPlugin
|
||||||
workspaceLeafContentElementParentToObserve = document.querySelector(".workspace");
|
workspaceLeafContentElementParentToObserve = document.querySelector(".workspace");
|
||||||
}
|
}
|
||||||
if (workspaceLeafContentElementParentToObserve) {
|
if (workspaceLeafContentElementParentToObserve) {
|
||||||
|
// Syntax sugar to satisfy the strict TypeScript compiler
|
||||||
|
const fileExplorerParentElement = workspaceLeafContentElementParentToObserve
|
||||||
const fullyFledgedFileExplorerElementSelector=
|
const fullyFledgedFileExplorerElementSelector=
|
||||||
() => workspaceLeafContentElementParentToObserve.querySelector('[data-type="file-explorer"] .nav-files-container');
|
() => fileExplorerParentElement.querySelector('[data-type="file-explorer"] .nav-files-container');
|
||||||
|
|
||||||
const mutationObserver = new MutationObserver((_, observerInstance) => {
|
const mutationObserver = new MutationObserver((_, observerInstance) => {
|
||||||
const fullyFledgedFileExplorerElement = fullyFledgedFileExplorerElementSelector();
|
const fullyFledgedFileExplorerElement = fullyFledgedFileExplorerElementSelector();
|
||||||
|
|
Loading…
Reference in New Issue