diff --git a/config.xml b/config.xml
index 30b0d5543..3376401e0 100644
--- a/config.xml
+++ b/config.xml
@@ -141,36 +141,36 @@
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index e276ffee2..1d9563deb 100644
--- a/package.json
+++ b/package.json
@@ -40,107 +40,107 @@
"windows.store": "npx electron-windows-store --input-directory .\\desktop\\dist\\win-unpacked --output-directory .\\desktop\\store -a .\\resources\\desktop -m .\\desktop\\assets\\windows\\AppXManifest.xml --package-version 0.0.0.0 --package-name MoodleDesktop"
},
"dependencies": {
- "@angular/animations": "5.2.10",
- "@angular/common": "5.2.10",
- "@angular/compiler": "5.2.10",
- "@angular/compiler-cli": "5.2.10",
- "@angular/core": "5.2.10",
- "@angular/forms": "5.2.10",
- "@angular/http": "5.2.10",
- "@angular/platform-browser": "5.2.10",
- "@angular/platform-browser-dynamic": "5.2.10",
- "@ionic-native/badge": "4.17.0",
- "@ionic-native/camera": "4.17.0",
- "@ionic-native/clipboard": "4.17.0",
- "@ionic-native/core": "4.11.0",
- "@ionic-native/device": "4.17.0",
- "@ionic-native/file": "4.17.0",
- "@ionic-native/file-opener": "4.17.0",
- "@ionic-native/file-transfer": "4.17.0",
- "@ionic-native/geolocation": "4.17.0",
- "@ionic-native/globalization": "4.17.0",
- "@ionic-native/in-app-browser": "4.17.0",
- "@ionic-native/keyboard": "4.17.0",
- "@ionic-native/local-notifications": "4.17.0",
- "@ionic-native/media-capture": "4.17.0",
- "@ionic-native/network": "4.17.0",
- "@ionic-native/push": "4.17.0",
- "@ionic-native/screen-orientation": "4.17.0",
- "@ionic-native/splash-screen": "4.17.0",
- "@ionic-native/sqlite": "4.17.0",
- "@ionic-native/status-bar": "4.17.0",
- "@ionic-native/web-intent": "4.17.0",
- "@ionic-native/zip": "4.17.0",
- "@ngx-translate/core": "8.0.0",
- "@ngx-translate/http-loader": "2.0.1",
- "@types/cordova": "0.0.34",
- "@types/cordova-plugin-file-transfer": "0.0.3",
- "@types/cordova-plugin-globalization": "0.0.3",
- "@types/cordova-plugin-network-information": "0.0.3",
- "@types/node": "8.10.19",
- "@types/promise.prototype.finally": "2.0.2",
- "ajv": "6.10.2",
- "chart.js": "2.7.2",
- "com-darryncampbell-cordova-plugin-intent": "1.3.0",
+ "@angular/animations": "^5.2.10",
+ "@angular/common": "^5.2.10",
+ "@angular/compiler": "^5.2.10",
+ "@angular/compiler-cli": "^5.2.10",
+ "@angular/core": "^5.2.10",
+ "@angular/forms": "^5.2.10",
+ "@angular/http": "^5.2.10",
+ "@angular/platform-browser": "^5.2.10",
+ "@angular/platform-browser-dynamic": "^5.2.10",
+ "@ionic-native/badge": "^4.17.0",
+ "@ionic-native/camera": "^4.17.0",
+ "@ionic-native/clipboard": "^4.17.0",
+ "@ionic-native/core": "^4.11.0",
+ "@ionic-native/device": "^4.17.0",
+ "@ionic-native/file": "^4.17.0",
+ "@ionic-native/file-opener": "^4.17.0",
+ "@ionic-native/file-transfer": "^4.17.0",
+ "@ionic-native/geolocation": "^4.17.0",
+ "@ionic-native/globalization": "^4.17.0",
+ "@ionic-native/in-app-browser": "^4.17.0",
+ "@ionic-native/keyboard": "^4.17.0",
+ "@ionic-native/local-notifications": "^4.17.0",
+ "@ionic-native/media-capture": "^4.17.0",
+ "@ionic-native/network": "^4.17.0",
+ "@ionic-native/push": "^4.17.0",
+ "@ionic-native/screen-orientation": "^4.17.0",
+ "@ionic-native/splash-screen": "^4.17.0",
+ "@ionic-native/sqlite": "^4.17.0",
+ "@ionic-native/status-bar": "^4.17.0",
+ "@ionic-native/web-intent": "^4.17.0",
+ "@ionic-native/zip": "^4.17.0",
+ "@ngx-translate/core": "^8.0.0",
+ "@ngx-translate/http-loader": "^2.0.1",
+ "@types/cordova": "^0.0.34",
+ "@types/cordova-plugin-file-transfer": "^0.0.3",
+ "@types/cordova-plugin-globalization": "^0.0.3",
+ "@types/cordova-plugin-network-information": "^0.0.3",
+ "@types/node": "^8.10.19",
+ "@types/promise.prototype.finally": "^2.0.2",
+ "ajv": "^6.10.2",
+ "chart.js": "^2.7.2",
+ "com-darryncampbell-cordova-plugin-intent": "^1.3.0",
"cordova": "9.0.0",
"cordova-android": "8.0.0",
- "cordova-android-support-gradle-release": "3.0.1",
- "cordova-clipboard": "1.3.0",
+ "cordova-android-support-gradle-release": "^3.0.1",
+ "cordova-clipboard": "^1.3.0",
"cordova-ios": "5.0.1",
- "cordova-plugin-badge": "0.8.8",
- "cordova-plugin-camera": "4.1.0",
- "cordova-plugin-customurlscheme": "4.4.0",
- "cordova-plugin-device": "2.0.3",
- "cordova-plugin-file": "6.0.2",
- "cordova-plugin-file-opener2": "2.2.1",
- "cordova-plugin-file-transfer": "1.7.1",
- "cordova-plugin-geolocation": "4.0.2",
- "cordova-plugin-globalization": "1.11.0",
- "cordova-plugin-inappbrowser": "3.1.0",
+ "cordova-plugin-badge": "^0.8.8",
+ "cordova-plugin-camera": "^4.1.0",
+ "cordova-plugin-customurlscheme": "^4.4.0",
+ "cordova-plugin-device": "^2.0.3",
+ "cordova-plugin-file": "^6.0.2",
+ "cordova-plugin-file-opener2": "^2.2.1",
+ "cordova-plugin-file-transfer": "^1.7.1",
+ "cordova-plugin-geolocation": "^4.0.2",
+ "cordova-plugin-globalization": "^1.11.0",
+ "cordova-plugin-inappbrowser": "^3.1.0",
"cordova-plugin-ionic-keyboard": "2.1.3",
"cordova-plugin-local-notification": "git+https://github.com/moodlemobile/cordova-plugin-local-notification.git#moodle",
- "cordova-plugin-media-capture": "3.0.3",
- "cordova-plugin-network-information": "2.0.2",
- "cordova-plugin-screen-orientation": "3.0.2",
- "cordova-plugin-splashscreen": "5.0.3",
- "cordova-plugin-statusbar": "2.4.3",
- "cordova-plugin-whitelist": "1.3.4",
- "cordova-plugin-zip": "3.1.0",
- "cordova-sqlite-storage": "3.4.0",
- "cordova-support-google-services": "1.2.1",
- "es6-promise-plugin": "4.2.2",
- "font-awesome": "4.7.0",
+ "cordova-plugin-media-capture": "^3.0.3",
+ "cordova-plugin-network-information": "^2.0.2",
+ "cordova-plugin-screen-orientation": "^3.0.2",
+ "cordova-plugin-splashscreen": "^5.0.3",
+ "cordova-plugin-statusbar": "^2.4.3",
+ "cordova-plugin-whitelist": "^1.3.4",
+ "cordova-plugin-zip": "^3.1.0",
+ "cordova-sqlite-storage": "^3.4.0",
+ "cordova-support-google-services": "^1.2.1",
+ "es6-promise-plugin": "^4.2.2",
+ "font-awesome": "^4.7.0",
"ionic-angular": "3.9.3",
- "ionicons": "3.0.0",
- "jszip": "3.1.5",
+ "ionicons": "^3.0.0",
+ "jszip": "^3.1.5",
"mathjax": "2.7.7",
- "moment": "2.22.2",
- "nl.kingsquare.cordova.background-audio": "1.0.1",
- "phonegap-plugin-multidex": "1.0.0",
+ "moment": "^2.22.2",
+ "nl.kingsquare.cordova.background-audio": "^1.0.1",
+ "phonegap-plugin-multidex": "^1.0.0",
"phonegap-plugin-push": "git+https://github.com/moodlemobile/phonegap-plugin-push.git#moodle-v3",
- "promise.prototype.finally": "3.1.0",
- "rxjs": "5.5.11",
- "sw-toolbox": "3.6.0",
- "ts-md5": "1.2.4",
- "web-animations-js": "2.3.1",
- "zone.js": "0.8.26"
+ "promise.prototype.finally": "^3.1.0",
+ "rxjs": "^5.5.11",
+ "sw-toolbox": "^3.6.0",
+ "ts-md5": "^1.2.4",
+ "web-animations-js": "^2.3.1",
+ "zone.js": "^0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.2",
- "electron-builder-lib": "20.23.1",
- "electron-rebuild": "1.8.1",
+ "electron-builder-lib": "^20.23.1",
+ "electron-rebuild": "^1.8.1",
"gulp": "4.0.2",
- "gulp-clip-empty-files": "0.1.2",
- "gulp-concat": "2.6.1",
- "gulp-flatten": "0.4.0",
- "gulp-rename": "1.3.0",
- "gulp-slash": "1.1.3",
- "gulp-util": "3.0.8",
- "lodash.template": "4.5.0",
- "node-loader": "0.6.0",
- "through": "2.3.8",
- "typescript": "2.6.2",
- "webpack-merge": "4.1.2"
+ "gulp-clip-empty-files": "^0.1.2",
+ "gulp-concat": "^2.6.1",
+ "gulp-flatten": "^0.4.0",
+ "gulp-rename": "^1.3.0",
+ "gulp-slash": "^1.1.3",
+ "gulp-util": "^3.0.8",
+ "lodash.template": "^4.5.0",
+ "node-loader": "^0.6.0",
+ "through": "^2.3.8",
+ "typescript": "^2.6.2",
+ "webpack-merge": "^4.1.2"
},
"browser": {
"electron": false
diff --git a/src/providers/utils/url.ts b/src/providers/utils/url.ts
index af89f56c3..ec233b1c0 100644
--- a/src/providers/utils/url.ts
+++ b/src/providers/utils/url.ts
@@ -183,7 +183,7 @@ export class CoreUrlUtilsProvider {
if (!this.isPluginFileUrl(url) || url.indexOf(this.textUtils.addEndingSlash(siteUrl)) !== 0) {
return url;
}
-
+
if (canUseTokenPluginFile) {
// Use tokenpluginfile.php.
url = url.replace(/(\/webservice)?\/pluginfile\.php/, '/tokenpluginfile.php/' + accessKey);