Commit 6832b054 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #504 from passy/redirect

Redirect addyosmani.github.com to todomvc.com
parents cbf939d8 80e4b5c8
......@@ -28,5 +28,12 @@
}
}
function redirect() {
if (location.hostname === 'addyosmani.github.com') {
location.hostname = 'todomvc.com';
}
}
appendSourceLink();
redirect();
})();
......@@ -35,6 +35,12 @@
});
};
function redirect() {
if (location.hostname === 'addyosmani.github.com') {
location.hostname = 'todomvc.com';
}
}
var Quotes = {};
Quotes.build = function (quotes, template) {
var quoteContainer = document.createElement('q'),
......@@ -132,6 +138,9 @@
});
};
// Redirect if not on main site.
redirect();
// Apps popover
$('.applist a').persistantPopover();
......
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