Skip to content

Commit faa8aa9

Browse files
authored
fix: js clobber only on supported platforms (#282)
1 parent 3389695 commit faa8aa9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

plugin.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
<engine name="cordova-windows" version=">=4.4.0" />
3434
</engines>
3535

36-
<js-module src="www/splashscreen.js" name="SplashScreen">
37-
<clobbers target="navigator.splashscreen" />
38-
</js-module>
39-
4036
<!-- android -->
4137
<platform name="android">
4238
<config-file target="res/xml/config.xml" parent="/*">
@@ -47,19 +43,31 @@
4743
</config-file>
4844

4945
<source-file src="src/android/SplashScreen.java" target-dir="src/org/apache/cordova/splashscreen" />
46+
47+
<js-module src="www/splashscreen.js" name="SplashScreen">
48+
<clobbers target="navigator.splashscreen" />
49+
</js-module>
5050
</platform>
5151

5252
<!-- windows -->
5353
<platform name="windows">
5454
<js-module src="src/windows/SplashScreenProxy.js" name="SplashScreenProxy">
5555
<runs />
5656
</js-module>
57+
58+
<js-module src="www/splashscreen.js" name="SplashScreen">
59+
<clobbers target="navigator.splashscreen" />
60+
</js-module>
5761
</platform>
5862

5963
<!-- browser -->
6064
<platform name="browser">
6165
<js-module src="src/browser/SplashScreenProxy.js" name="SplashScreenProxy">
6266
<runs />
6367
</js-module>
68+
69+
<js-module src="www/splashscreen.js" name="SplashScreen">
70+
<clobbers target="navigator.splashscreen" />
71+
</js-module>
6472
</platform>
6573
</plugin>

0 commit comments

Comments
 (0)