Browse Source

Fix for Google Maps from other countries

pull/13/merge
Zach Wise 13 years ago
parent
commit
6cc130cd07
  1. 2
      source/js/VMM.js
  2. 2
      timeline-min.js
  3. 4
      timeline.js

2
source/js/VMM.js

@ -1408,7 +1408,7 @@ if (typeof VMM == 'undefined') {
media.type = "twitter"; media.type = "twitter";
media.id = twitter_id; media.id = twitter_id;
success = true; success = true;
} else if (d.match("maps.google.com")) { } else if (d.match("maps.google")) {
//maps.google.com //maps.google.com
media.type = "google-map"; media.type = "google-map";
media.id = d.split(/src=['|"][^'|"]*?['|"]/gi); media.id = d.split(/src=['|"][^'|"]*?['|"]/gi);

2
timeline-min.js vendored

File diff suppressed because one or more lines are too long

4
timeline.js

@ -1,6 +1,6 @@
/* Verite /* Verite
* Verite JS Master * Verite JS Master
* Version: 0.5 * Version: 0.6
* Date: April 5, 2012 * Date: April 5, 2012
* Copyright 2012 Verite unless part of Verite Timeline, * Copyright 2012 Verite unless part of Verite Timeline,
* if part of Timeline then it inherits Timeline's license. * if part of Timeline then it inherits Timeline's license.
@ -1408,7 +1408,7 @@ if (typeof VMM == 'undefined') {
media.type = "twitter"; media.type = "twitter";
media.id = twitter_id; media.id = twitter_id;
success = true; success = true;
} else if (d.match("maps.google.com")) { } else if (d.match("maps.google")) {
//maps.google.com //maps.google.com
media.type = "google-map"; media.type = "google-map";
media.id = d.split(/src=['|"][^'|"]*?['|"]/gi); media.id = d.split(/src=['|"][^'|"]*?['|"]/gi);

Loading…
Cancel
Save