Skip to content

Commit

Permalink
append "?update" to the script URL when checking for updates
Browse files Browse the repository at this point in the history
this is what userscripts.org recommends to avoid messing up install stats
  • Loading branch information
mislav committed Jun 20, 2009
1 parent 5591ad6 commit baabab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolkit/update_notifier.js
Expand Up @@ -25,7 +25,7 @@ var checkUserscriptUpdate = (function(){
update.available = false
update.scriptLength = scriptLength
}
var sourceURL = scriptURL.replace(/show\/(\d+)$/, 'source/$1.user.js')
var sourceURL = scriptURL.replace(/show\/(\d+)$/, 'source/$1.user.js?update')

if (!update.available) {
var time = Math.floor(new Date().getTime() / 1000),
Expand Down

0 comments on commit baabab2

Please sign in to comment.