Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
feat(html): support noscript tag on layout for browsers with no javas…
Browse files Browse the repository at this point in the history
…cript (#1454)
  • Loading branch information
hyperreality authored and lirantal committed Aug 28, 2016
1 parent 730cca7 commit 99c64cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/core/server/views/layout.server.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
</section>
</section>

<noscript>
<style>
[ng\:cloak], [ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: block !important;
}
</style>
<div class="alert alert-warning">
<strong>This page requires JavaScript.</strong> Please enable it in your browser.
</div>
</noscript>

<!--Embedding The User Object-->
<script type="text/javascript">
var user = {{ user | json | safe }};
Expand Down

0 comments on commit 99c64cf

Please sign in to comment.