Skip to content

Commit

Permalink
Hide navbar when inside a frame
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
nawroth committed Nov 20, 2015
1 parent 41ad4e8 commit 1c39434
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/docgist.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function DocGist($) {
$(document).ready(function () {
$content = $('#content');
$gistId = $('#gist-id');
if (top.location != self.location) {
$('body>div.navbar').css('display', 'none');
}

var gist = new Gist($, $content);
var urlInfo = getUrlAttributes();
Expand Down

0 comments on commit 1c39434

Please sign in to comment.