Skip to content

Commit

Permalink
Dyanmically update version badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Mar 10, 2015
1 parent cb94eb8 commit 2cb6bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ function injectPage(url, opt_addToHistory) {
// Update app-bar links.
var docAppBar = doc.querySelector('app-bar');
if (docAppBar) {
appBar.badge = docAppBar.getAttribute('badge');
appBar.innerHTML = docAppBar.innerHTML;
} else {
// We're not on a doc page (e.g. demo page or something else). Just redirect.
Expand Down Expand Up @@ -290,7 +291,7 @@ document.addEventListener('polymer-ready', function(e) {
});

document.addEventListener('page-injected', function(e) {

// Kickoff element doc pages
initElementDoc();

Expand Down

0 comments on commit 2cb6bb8

Please sign in to comment.