Skip to content

Commit

Permalink
Using lib-iitc-manager instead of partially copying code from IITC Bu…
Browse files Browse the repository at this point in the history
…tton
  • Loading branch information
modos189 committed Apr 22, 2022
1 parent 71463d3 commit 7940328
Show file tree
Hide file tree
Showing 4 changed files with 1,068 additions and 833 deletions.
219 changes: 0 additions & 219 deletions app/background/manager.js

This file was deleted.

10 changes: 7 additions & 3 deletions app/components/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
import AppBar from './AppBar';
import ProgressBar from './ProgressBar';
import { runExtension } from '~/background/manager'
import storage from "~/utils/storage"
import { Manager } from 'lib-iitc-manager'
import {AndroidApplication, Application} from "@nativescript/core";
export default {
Expand Down Expand Up @@ -83,9 +84,12 @@
},
created() {
async created() {
console.log("IITC create event fired");
runExtension().then(() => {});
const manager = new Manager({
storage: storage
});
await manager.run()
if (Application.android) {
Application.android.on(AndroidApplication.activityBackPressedEvent, (args) => {
Expand Down
Loading

0 comments on commit 7940328

Please sign in to comment.