version check plugin - use https URLs for version check when intel loaded over https
This commit is contained in:
parent
1a200269bd
commit
e81dead91f
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-update-check@jonatkins
|
// @id iitc-plugin-update-check@jonatkins
|
||||||
// @name IITC plugin: Check for updates
|
// @name IITC plugin: Check for updates
|
||||||
// @category Misc
|
// @category Misc
|
||||||
// @version 0.1.0.@@DATETIMEVERSION@@
|
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -26,8 +26,8 @@ window.plugin.updateCheck.versionDataLoading = false;
|
|||||||
|
|
||||||
|
|
||||||
window.plugin.updateCheck.getUrl = function(callback) {
|
window.plugin.updateCheck.getUrl = function(callback) {
|
||||||
|
var base = window.location.protocol == 'https:' ? 'https://secure.jonatkins.com/iitc' : 'http://iitc.jonatkins.com';
|
||||||
var url = 'http://iitc.jonatkins.com/versioncheck.php'
|
var url = base+'/versioncheck.php'
|
||||||
+ '?build=@@BUILDNAME@@'
|
+ '?build=@@BUILDNAME@@'
|
||||||
+ '&mobile='+((typeof android !== 'undefined' && android)?'1':'0')
|
+ '&mobile='+((typeof android !== 'undefined' && android)?'1':'0')
|
||||||
+ '&ts='+Date.now(); // append timestamp - ensures no caching of old data, even on mobile with the aggressive cache code
|
+ '&ts='+Date.now(); // append timestamp - ensures no caching of old data, even on mobile with the aggressive cache code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user