Skip to content

Commit 3d110b3

Browse files
Merge pull request #320 from FBNitro/master
Add Preference to support a custom Windows Start Page
2 parents 80a851d + ff35b53 commit 3d110b3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

plugin.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@
8383

8484
<!-- windows8 -->
8585
<platform name="windows8">
86+
<preference name="WINDOWS_START_PAGE" default="www/index.html" />
87+
8688
<config-file target="package.appxmanifest" parent="/Package/Applications/Application/Extensions">
87-
<Extension Category="windows.protocol" StartPage="www/index.html">
89+
<Extension Category="windows.protocol" StartPage="$WINDOWS_START_PAGE">
8890
<Protocol Name="$URL_SCHEME" />
8991
</Extension>
9092
</config-file>
@@ -96,18 +98,20 @@
9698

9799
<!-- windows -->
98100
<platform name="windows">
101+
<preference name="WINDOWS_START_PAGE" default="www/index.html" />
102+
99103
<config-file target="package.windows.appxmanifest" parent="/Package/Applications/Application/Extensions">
100-
<uap:Extension Category="windows.protocol" StartPage="www/index.html">
104+
<uap:Extension Category="windows.protocol" StartPage="$WINDOWS_START_PAGE">
101105
<uap:Protocol Name="$URL_SCHEME" />
102106
</uap:Extension>
103107
</config-file>
104108
<config-file target="package.windows10.appxmanifest" parent="/Package/Applications/Application/Extensions">
105-
<uap:Extension Category="windows.protocol" StartPage="www/index.html">
109+
<uap:Extension Category="windows.protocol" StartPage="$WINDOWS_START_PAGE">
106110
<uap:Protocol Name="$URL_SCHEME" />
107111
</uap:Extension>
108112
</config-file>
109113
<config-file target="package.phone.appxmanifest" parent="/Package/Applications/Application/Extensions">
110-
<uap:Extension Category="windows.protocol" StartPage="www/index.html">
114+
<uap:Extension Category="windows.protocol" StartPage="$WINDOWS_START_PAGE">
111115
<uap:Protocol Name="$URL_SCHEME" />
112116
</uap:Extension>
113117
</config-file>

0 commit comments

Comments
 (0)