Skip to content

Commit

Permalink
remove trailing slash on base to match origin
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Apr 23, 2012
1 parent cf17ccb commit 7d8a24e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.yaml
@@ -1,5 +1,5 @@
application: hnbutton
version: 4
version: 6
runtime: go
api_version: go1

Expand Down
4 changes: 2 additions & 2 deletions static/hn.js
Expand Up @@ -23,7 +23,7 @@
eventMethod = w.addEventListener ? "addEventListener" : "attachEvent",
eventer = w[eventMethod],
messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message",
base = "http://hnbutton.appspot.com/";
base = "http://hnbutton.appspot.com";

w._gaq || (w._gaq = []);
eventer(messageEvent, function (e) {
Expand All @@ -38,7 +38,7 @@
url = anchor.getAttribute("data-url") || w.location.href,
i = d.createElement("iframe");

i.src = base + "button?title=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(url);
i.src = base + "/button?title=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(url);
i.scrolling = "auto";
i.frameBorder = "0";
i.width = "75px";
Expand Down

0 comments on commit 7d8a24e

Please sign in to comment.