diff --git a/src/functions/app.ts b/src/functions/app.ts index 1e30d52..9bc4fd8 100755 --- a/src/functions/app.ts +++ b/src/functions/app.ts @@ -98,6 +98,21 @@ setInterval(updateStatus, 100); import { AndroidShortcuts } from 'capacitor-android-shortcuts'; + +/* FIXME: This code is not working +async function getToBase64(filepath: string) { + const response = await axios.get(filepath, { responseType: 'blob' }); + const filereader = new FileReader(); + return new Promise((resolve) => { + filereader.onloadend = () => { + const result = filereader.result; + resolve(result); + }; + filereader.readAsDataURL(response.data); + }) +} +*/ + AndroidShortcuts.isDynamicSupported().then((result) => { if (result) { AndroidShortcuts.addDynamic({