Commit dcf1c047 authored by nanahira's avatar nanahira

linux && height > width => ygomobile

parent f5ebd782
Pipeline #22040 failed with stages
in 1 minute and 9 seconds
......@@ -3,8 +3,8 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod --source-map --base-href https://cdn02.moecube.com:444/store/remake/ --deploy-url https://cdn02.moecube.com:444/store/remake/",
"start": "NODE_OPTIONS=--openssl-legacy-provider ng serve --host 0.0.0.0",
"build": "NODE_OPTIONS=--openssl-legacy-provider ng build --prod --source-map --base-href https://cdn02.moecube.com:444/store/remake/ --deploy-url https://cdn02.moecube.com:444/store/remake/",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
......
......@@ -54,10 +54,17 @@ export class LayoutComponent implements OnInit {
}
async ngOnInit() {
if(navigator.platform.match(/Mac/i)) {
if (navigator.platform.match(/Android/i)) {
this.latest_current = 'https://www.123pan.com/s/bKZKVv-m3sTd.html';
} else if (navigator.platform.match(/Mac/i)) {
this.latest_current = await this.latest_drawin.toPromise();
} else if (navigator.platform.match(/Linux/i)) {
this.latest_current = await this.latest_linux.toPromise();
if(window.innerHeight > window.innerWidth) {
this.latest_current = 'https://www.123pan.com/s/bKZKVv-m3sTd.html';
} else {
this.latest_current = await this.latest_linux.toPromise();
}
} else {
this.latest_current = await this.latest_win32.toPromise();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment