Skip to content

Commit

Permalink
feat(app): add app module
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Downs committed Mar 26, 2022
1 parent fbcc0c7 commit 1cf31a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/modules/app.ts
@@ -0,0 +1,12 @@
import { Manifest } from '../models';
import { Navigator } from './navigator';

export class App {
getManifest(): Promise<Manifest> {
return new Promise((resolve, reject) => {
const request = Navigator.navigator.mozApps.getSelf();
request.onsuccess = () => resolve(request.result.manifest);
request.onerror = () => reject(request.error);
});
}
}

0 comments on commit 1cf31a1

Please sign in to comment.