added github action workflow

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent afcc6e58f8
commit 232538cd8d
5 changed files with 33 additions and 6 deletions
-1
View File
@@ -47,7 +47,6 @@ export class AppComponent {
ngAfterViewInit() {
this.spinnerService.setSpinner(this.spinner);
this.statusService.setStatus(this.status);
console.log(this.webview);
this.webService.setWebView(this.webview.nativeElement);
}
}
+8 -3
View File
@@ -77,9 +77,9 @@ export class ElectronService {
rejectUnauthorized: !isDevMode(),
json: { token: token },
};
console.log(options);
// console.log(options);
this.appService.request(options, async (error, response, body) => {
console.log(error, body);
// console.log(error, body);
if (!error && body.data && body.data.apps && body.data.apps.length) {
for (let i = 0; i < body.data.apps.length; i++) {
let app = body.data.apps[i];
@@ -157,8 +157,13 @@ export class ElectronService {
if (data) {
let url = data.split('#');
switch (url[0]) {
case 'sidequest://w/':
this.adbService.runAdbCommand('adb shell am start -a android.intent.action.VIEW -d ' + url[1]).then(() => {
this.statusService.showStatus('Launching WebXR in browser...');
});
this.webviewService.isWebviewLoading = false;
break;
case 'sidequest://i/':
console.log(data);
this.installFromToken(url[1]);
break;
case 'sidequest://unload/':
@@ -149,7 +149,6 @@ export class ProcessBucketService {
this.tasks = this.tasks.filter(t => !t.failed);
}
clearAll() {
igin;
this.tasks = [];
}
}
-1
View File
@@ -14,7 +14,6 @@ export class WebviewService {
appService.setWebviewService(this);
}
setWebView(webView) {
console.log({ webView });
this.webView = webView;
this.setupWebview();
}