From d14991eeb592839a8eafef4f6c546bf42028f69d Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 9 Jun 2020 19:20:30 -0600 Subject: [PATCH] Splashscreen++ --- config.xml | 3 +++ package-lock.json | 5 +++++ package.json | 4 +++- www/assets/js/platform.js | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/config.xml b/config.xml index 7542c98..5607b12 100644 --- a/config.xml +++ b/config.xml @@ -20,6 +20,9 @@ + + + diff --git a/package-lock.json b/package-lock.json index d0ff6b3..b84368d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -139,6 +139,11 @@ } } }, + "cordova-plugin-splashscreen": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-5.0.4.tgz", + "integrity": "sha512-zmyhBrObNuwDH4KB4zuZrJ9IKC113EM6KJpqC0/2f3o9GRznPk1S4j9O9rosJT4EASg4X3hdssv9XkAH3D5ZYg==" + }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", diff --git a/package.json b/package.json index e7e0166..ba5a5be 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "license": "MPL-2.0", "dependencies": { "cordova-android": "^8.1.0", + "cordova-plugin-splashscreen": "^5.0.4", "phonegap-plugin-barcodescanner": "^8.1.0" }, "cordova": { @@ -32,7 +33,8 @@ "cordova-plugin-headercolor": {}, "phonegap-plugin-barcodescanner": { "ANDROID_SUPPORT_V4_VERSION": "27.+" - } + }, + "cordova-plugin-splashscreen": {} } }, "devDependencies": {} diff --git a/www/assets/js/platform.js b/www/assets/js/platform.js index 0313b93..678c929 100644 --- a/www/assets/js/platform.js +++ b/www/assets/js/platform.js @@ -191,6 +191,8 @@ function initCordova() { window.open($(this).attr("href"), "_system"); evt.preventDefault(); }); + + navigator.splashscreen.hide(); } function initNW() {