Hide NSIS installer from Window 10 devices (which should be using the more secure Windows Store)

This commit is contained in:
Reinhard Pointner 2016-11-11 00:20:13 +08:00
parent 2d3ae1ae3d
commit 460ef542a1
1 changed files with 4 additions and 4 deletions

View File

@ -133,11 +133,11 @@
<div id="windows" class="section deployment windows winappstore" style="display:none">
<script type="text/javascript">
$(document).ready(function () {
if (navigator.userAgent.indexOf('Windows NT 10.0') >= 0) {
if (navigator.userAgent.indexOf('Windows') >= 0) {
$(".winappstore").show();
if (navigator.userAgent.indexOf('Edge') >= 0) {
$(".nsis").hide();
if (navigator.userAgent.indexOf('Windows NT 10.0') < 0) {
$(".nsis").show();
}
}
});
@ -293,7 +293,7 @@
<li class="macosx">Available on the <a href="https://itunes.apple.com/us/app/filebot/id905384638?mt=12&amp;uo=6&amp;at=1l3vupy&amp;ct=filebot2" target="itunes_store">Mac App Store</a></li>
<li class="windows">Available on the <a href="https://www.microsoft.com/store/apps/9nblggh52t9x" target="windows_store">Windows Store</a></li>
<li class="macappstore" style="display:none">FileBot Subtitles for Mac OS X: <a target="_blank" href="http://www.filebot.net/forums/viewtopic.php?f=12&amp;t=3350">FileBot_Subtitles_Installer.pkg</a> <small class="comment">for everyone who purchased FileBot on the Mac App Store</small></li>
<li class="nsis">Windows installer: <a target="_blank" href="https://app.filebot.net/files/FileBot-setup.exe">FileBot_@{version}-setup.exe</a> <small class="comment">for Windows 8 and earlier</small></li>
<li class="nsis" style="display:none">Windows installer: <a target="_blank" href="https://app.filebot.net/files/FileBot-setup.exe">FileBot_@{version}-setup.exe</a> <small class="comment">for Windows 8 and earlier</small></li>
<li>Debian packages: <a target="_blank" href="https://app.filebot.net/download.php?type=deb&amp;arch=i386&amp;version=@{version}">filebot_@{version}_i386.deb</a> or <a target="_blank" href="https://app.filebot.net/download.php?type=deb&amp;arch=amd64&amp;version=@{version}">filebot_@{version}_amd64.deb</a></li>
<li>Embedded Linux package: <a target="_blank" href="https://app.filebot.net/download.php?type=ipkg&amp;arch=noarch&amp;version=@{version}">filebot_@{version}_noarch.ipk</a></li>
<li>Portable: <a target="_blank" href="https://app.filebot.net/download.php?type=portable&amp;version=@{version}">FileBot-@{version}-portable.zip</a> <small class="comment">for all platforms</small>