fix: js clobber only on supported platforms (#282)

This commit is contained in:
エリス 2020-07-07 12:08:11 +09:00 committed by GitHub
parent 3389695fc5
commit faa8aa937d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>