From 4b6902ce1e8a07dbb380d463bfd860efa321bf8a Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Sun, 31 Mar 2024 00:45:57 -0700 Subject: [PATCH] change: import bytestring to main.js --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2975521f..1806f4bf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,6 +13,7 @@ import { Env, FrontmatterPrepare, GistrAPI, GistrEditor, IconGithubPublic, IconG import { SaturynRegister, SaturynParams, SaturynParamsHandle, SaturynUnload, SaturynPortalInitialize, SaturynModalPortalEdit, SaturynCodeblock, SaturynOpen, SaturynIsOpen } from 'src/api/Saturyn' import { lng } from 'src/lang' import type { LeafButtonBase } from 'src/types' +import { base64ToArrayBuffer, arrayBufferToBase64, readString, writeString, uint8ArrayToHexString } from "src/api/Storage/ByteStr"; import { GetButtonIcon, GetIconSize, RemoveLeafButtonsAll } from 'src/utils' import ModalGettingStarted from "src/modals/GettingStartedModal" import ShowContextMenu from 'src/menus/context' @@ -119,7 +120,7 @@ export default class GistrPlugin extends Plugin this.addSettingTab ( new SettingsSection( this.app, this ) ) this.registerPortal ( ) SaturynCodeblock ( this ) - + this.app.workspace.onLayoutReady( async ( ) => { if ( this.settings.firststart === true )