Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Revert d'un commit qui supprimait du code FIXME (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve committed Apr 12, 2023
2 parents dc0ad55 + f132980 commit 9ffaff2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/functions/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9ffaff2

Please sign in to comment.