Skip to content

Commit 39f99e8

Browse files
authored
Merge pull request #251 from machawk1/issue-250
MemGator via https, closes #250, update license, fix archive.is isAMe…
2 parents 366bf55 + 1440d38 commit 39f99e8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mink-plugin/content.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var debug = false
55
// var proxy = 'http://timetravel.mementoweb.org/timemap/link/'
66
// var memgator_proxy = 'http://memgator.cs.odu.edu/timemap/link/'
77
// var aggregator_wdi_json = 'http://labs.mementoweb.org/timemap/json/'
8-
var memgator_json = 'http://memgator.cs.odu.edu/timemap/json/'
8+
var memgator_json = 'https://memgator.cs.odu.edu/timemap/json/'
99

1010
// var aggregator_wdi_link = 'http://labs.mementoweb.org/timemap/link/'
1111
// var aggregator_diy_link = 'http://timetravel.mementoweb.org/timemap/link/'
@@ -107,9 +107,9 @@ function displayUIBasedOnContext () {
107107
case 3: link header, datetime
108108
*/
109109
for (var headerI = 0; headerI < headers.length; headerI++) {
110-
if (headers[headerI].name === 'Memento-Datetime') {
110+
if (headers[headerI].name.toLowerCase() === 'memento-datetime') {
111111
mementoDateTimeHeader = headers[headerI].value
112-
} else if (headers[headerI].name === 'Link') {
112+
} else if (headers[headerI].name.toLowerCase() === 'link') {
113113
linkHeaderAsString = headers[headerI].value
114114
}
115115
}

mink-plugin/js/displayMinkUI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function archiveURI_archiveOrg (cb, openInNewTab) {
260260
shadow.getElementById('archivelogo_ia').classList.add('archiveNowSuccess')
261261

262262
var parsedRawArchivedURI = a.match(/\"\/web\/.*\"/g)
263-
var archiveURI = 'http://web.archive.org' + parsedRawArchivedURI[0].substring(1, parsedRawArchivedURI[0].length - 1)
263+
var archiveURI = 'https://web.archive.org' + parsedRawArchivedURI[0].substring(1, parsedRawArchivedURI[0].length - 1)
264264
shadow.getElementById('archivelogo_ia').setAttribute('title', archiveURI)
265265
shadow.getElementById('archivelogo_ia').onclick = function () {
266266
if (!openInNewTab) {

mink-plugin/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Mink - Integrate Live & Archived Web +Memento",
44
"short_name": "Mink",
5-
"version": "2.3.2.8",
5+
"version": "2.3.3",
66
"description": "Integrating the Live and Archived Web Viewing Experience Using Memento",
77
"homepage_url": "http://matkelly.com/mink",
88
"author": "Mat Kelly <mink@matkelly.com>",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"memento",
1414
"aggregation"
1515
],
16-
"license": "GPLv2",
16+
"license": "MIT",
1717
"repository": {
1818
"type": "git",
1919
"url": "git://github.com/machawk1/mink.git"

0 commit comments

Comments
 (0)