You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2020/07/07 03:11:09 UTC

[cordova-plugin-splashscreen] branch master updated: fix: js clobber only on supported platforms (#282)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-splashscreen.git


The following commit(s) were added to refs/heads/master by this push:
     new faa8aa9  fix: js clobber only on supported platforms (#282)
faa8aa9 is described below

commit faa8aa937d398f08b1a4ddab6486e4ca5e39517b
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Jul 7 12:08:11 2020 +0900

    fix: js clobber only on supported platforms (#282)
---
 plugin.xml | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/plugin.xml b/plugin.xml
index c96de85..cc1fb1a 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -33,10 +33,6 @@
         <engine name="cordova-windows" version=">=4.4.0" />
     </engines>
 
-    <js-module src="www/splashscreen.js" name="SplashScreen">
-        <clobbers target="navigator.splashscreen" />
-    </js-module>
-
     <!-- android -->
     <platform name="android">
         <config-file target="res/xml/config.xml" parent="/*">
@@ -47,6 +43,10 @@
         </config-file>
 
         <source-file src="src/android/SplashScreen.java" target-dir="src/org/apache/cordova/splashscreen" />
+
+        <js-module src="www/splashscreen.js" name="SplashScreen">
+            <clobbers target="navigator.splashscreen" />
+        </js-module>
     </platform>
 
     <!-- windows -->
@@ -54,6 +54,10 @@
         <js-module src="src/windows/SplashScreenProxy.js" name="SplashScreenProxy">
             <runs />
         </js-module>
+
+        <js-module src="www/splashscreen.js" name="SplashScreen">
+            <clobbers target="navigator.splashscreen" />
+        </js-module>
     </platform>
 
     <!-- browser -->
@@ -61,5 +65,9 @@
         <js-module src="src/browser/SplashScreenProxy.js" name="SplashScreenProxy">
             <runs />
         </js-module>
+
+        <js-module src="www/splashscreen.js" name="SplashScreen">
+            <clobbers target="navigator.splashscreen" />
+        </js-module>
     </platform>
 </plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org