Merge pull request #2752 from dpalou/MOBILE-3320

Mobile 3320
main
Noel De Martin 2021-05-10 13:15:44 +02:00 committed by GitHub
commit bf80e3d12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export class CoreWSProvider {
protected async init(): Promise<void> {
await Platform.ready();
if (CoreApp.isIOS()) {
if (CoreApp.isMobile()) {
NativeHttp.setHeader('*', 'User-Agent', navigator.userAgent);
}
}

View File

@ -9,6 +9,7 @@
<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Security-Policy" content="default-src * filesystem: cdvfile: file: data: gap: https://ssl.gstatic.com moodleappfs: http://localhost; img-src * filesystem: gap: data: cdvfile: file: https://ssl.gstatic.com android-webview-video-poster: blob: moodleappfs: http://localhost; style-src 'self' 'unsafe-inline' filesystem: cdvfile: file: moodleappfs: http://localhost; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* filesystem: cdvfile: file: moodleappfs:; media-src * filesystem: cdvfile: file: gap: blob: moodleappfs: http://localhost">
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />