This commit is contained in:
parent
07031ae6c9
commit
287a2f461e
BIN
.yarn/install-state.gz
vendored
BIN
.yarn/install-state.gz
vendored
Binary file not shown.
@ -49,7 +49,7 @@ function checkToy() {
|
|||||||
function generateVaultConfig(vault: string) {
|
function generateVaultConfig(vault: string) {
|
||||||
const vaultHash = randomBytes(8).toString("hex").toLocaleLowerCase();
|
const vaultHash = randomBytes(8).toString("hex").toLocaleLowerCase();
|
||||||
let configLocation;
|
let configLocation;
|
||||||
console.log("vault is", vault)
|
console.log("vault is", vault, existsSync(vault));
|
||||||
checkToy();
|
checkToy();
|
||||||
if (process.platform == "win32") {
|
if (process.platform == "win32") {
|
||||||
configLocation = path.join(`${process.env.APPDATA}`, "Obsidian");
|
configLocation = path.join(`${process.env.APPDATA}`, "Obsidian");
|
||||||
|
@ -134,7 +134,7 @@ export async function doWithApp<T = unknown, A = any>(
|
|||||||
*/
|
*/
|
||||||
export function waitForIndexingComplete(page: Page) {
|
export function waitForIndexingComplete(page: Page) {
|
||||||
return page.evaluateHandle<App>("window.app").then((appHandle) => {
|
return page.evaluateHandle<App>("window.app").then((appHandle) => {
|
||||||
return appHandle.evaluate(() => {
|
return appHandle.evaluate((app) => {
|
||||||
return new Promise((res2, rej2) => {
|
return new Promise((res2, rej2) => {
|
||||||
let resolved = false;
|
let resolved = false;
|
||||||
app.metadataCache.on("resolved", () => {
|
app.metadataCache.on("resolved", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user