From 3c9665780b6e61e6ddafd0e555742f2075e8078a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 28 Nov 2011 02:45:42 +0100 Subject: [PATCH] fix auto-updater. 2.21.4 --- 4chan_x.user.js | 10 +++++----- Cakefile | 2 +- changelog | 4 ++++ latest.js | 2 +- script.coffee | 4 ++-- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index d84b33bd6..c84c42e2b 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan x -// @version 2.21.3 +// @version 2.21.4 // @namespace aeosynth // @description Adds various features. // @copyright 2009-2011 James Campos @@ -15,7 +15,7 @@ * * Copyright (c) 2009-2011 James Campos * http://mayhemydg.github.com/4chan-x/ - * 4chan x 2.21.3 + * 4chan x 2.21.4 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -211,7 +211,7 @@ NAMESPACE = '4chan_x.'; - VERSION = '2.21.3'; + VERSION = '2.21.4'; SECOND = 1000; @@ -3035,12 +3035,12 @@ return options.init(); }, message: function(e) { - var data, location, origin; + var data, origin; origin = e.origin, data = e.data; if (origin === 'http://sys.4chan.org') { return qr.message(data); } else if (data.version !== VERSION && confirm('An updated version of 4chan X is available, would you like to install it now?')) { - return location = "https://raw.github.com/mayhemydg/4chan-x/" + data.version + "/4chan_x.user.js"; + return window.location = "https://raw.github.com/mayhemydg/4chan-x/" + data.version + "/4chan_x.user.js"; } }, node: function(e) { diff --git a/Cakefile b/Cakefile index 586d87585..72fb5138f 100644 --- a/Cakefile +++ b/Cakefile @@ -2,7 +2,7 @@ {exec} = require 'child_process' fs = require 'fs' -VERSION = '2.21.3' +VERSION = '2.21.4' HEADER = """ // ==UserScript== diff --git a/changelog b/changelog index 004385bde..07ba4c087 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,9 @@ master +2.21.4 +- mayhem + fix auto-updater + 2.21.3 - mayhem fix locked thread icons with fit width/screen enabled on Firefox diff --git a/latest.js b/latest.js index dbf68abc1..592a4d3f5 100644 --- a/latest.js +++ b/latest.js @@ -1 +1 @@ -postMessage({version:'2.21.3'},'*'); +postMessage({version:'2.21.4'},'*'); diff --git a/script.coffee b/script.coffee index 89cb09138..fad56c7a8 100644 --- a/script.coffee +++ b/script.coffee @@ -122,7 +122,7 @@ conf = {} ) null, config NAMESPACE = '4chan_x.' -VERSION = '2.21.3' +VERSION = '2.21.4' SECOND = 1000 MINUTE = 60*SECOND HOUR = 60*MINUTE @@ -2413,7 +2413,7 @@ Main = if origin is 'http://sys.4chan.org' qr.message data else if data.version isnt VERSION and confirm 'An updated version of 4chan X is available, would you like to install it now?' - location = "https://raw.github.com/mayhemydg/4chan-x/#{data.version}/4chan_x.user.js" + window.location = "https://raw.github.com/mayhemydg/4chan-x/#{data.version}/4chan_x.user.js" node: (e) -> {target} = e