Commit 34660fd7 authored by csillag's avatar csillag

Yank out release tagging and (clien-side) version checking support.

(This is now obsolete, since the hybrid extension packaging is gone.)

This reverts the following commits:
    0651af1f1806a76efebe7bb3ea55499c11f07787
    7fbe0a71e2403ee426b311f24c4d27e086025c76
    192b9547528541c03945975a42d65c1c75d4cd65
parent dbaa890d
......@@ -105,8 +105,6 @@ class Annotator.Host extends Annotator
@panel
.bind('checkRelease', -> hypothesis_release)
.bind('onEditorHide', this.onEditorHide)
.bind('onEditorSubmit', this.onEditorSubmit)
......
window.hypothesis_release='Thu Aug 29 14:35:45 2013 (Demolition Man)'
......@@ -50,8 +50,8 @@ class Hypothesis extends Annotator
viewer:
addField: (-> )
this.$inject = ['$document', '$location', '$rootScope', '$route', '$window', 'authentication', 'drafts']
constructor: ($document, $location, $rootScope, $route, $window, authentication, drafts) ->
this.$inject = ['$document', '$location', '$rootScope', '$route', 'authentication', 'drafts']
constructor: ($document, $location, $rootScope, $route, authentication, drafts) ->
Gettext.prototype.parse_locale_data annotator_locale_data
super ($document.find 'body')
......@@ -139,29 +139,6 @@ class Hypothesis extends Annotator
# Reload the route after annotations are loaded
this.subscribe 'annotationsLoaded', -> $route.reload()
check_versions = (host_release) ->
v1 = hypothesis_release
v2 = host_release
# v3 = hypothesis_server_release ? "(missing)"
if v1 is v2 #and v1 is v3
console.log "You are running release: " + v1
console.log "Code versions are consistent. We are good to go."
else
console.log "============================================"
console.log "Sidebar code release is " + v1
console.log "Host document code release is " + v2
# console.log "Server-side code release is " + v3
console.log "============================================"
if $window.confirm "Unfortunately, your browser has somehow loaded incompatible versions of the different pieces of our code. This should not happen, but if it does, it should be a very temporary situation. You could try to manually update your extension. If that does not help, please check back later (30 minutes should be enough). Please excuse us for the inconvenience.\n\nWould like to see instructions describing how to manually update your extensions?"
$window.open "http://www.howtogeek.com/64525/how-to-manually-force-google-chrome-to-update-extensions/"
@provider.call
method: 'checkRelease'
timeout: 10000
error: -> check_versions "(missing)"
success: check_versions
@auth = authentication
@socialView =
name: "none" # "single-player"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment