fix orbitbar

This commit is contained in:
BOHUNG 2020-02-06 14:26:58 +08:00
parent a9cbf2256c
commit efbf71a7c7
2 changed files with 4 additions and 0 deletions

View File

@ -402,6 +402,7 @@
top: 2.5em; top: 2.5em;
} }
</style> </style>
<% if !(OrbitHelper.request || request).env["REQUEST_URI"].include?('admin') %>
<script> <script>
var barState = window.localStorage.getItem('barState'); var barState = window.localStorage.getItem('barState');
function extendBar() { function extendBar() {
@ -447,6 +448,7 @@
}) })
</script> </script>
<% end %> <% end %>
<% end %>
<style> <style>
@media screen and (min-width:539px){ @media screen and (min-width:539px){
<% if(!current_site.orbit_bar_submenu_background_color.blank? rescue false)%> <% if(!current_site.orbit_bar_submenu_background_color.blank? rescue false)%>

View File

@ -395,6 +395,7 @@
top: 2.5em; top: 2.5em;
} }
</style> </style>
<% if !(OrbitHelper.request || request).env["REQUEST_URI"].include?('admin') %>
<script> <script>
var barState = window.localStorage.getItem('barState'); var barState = window.localStorage.getItem('barState');
function extendBar() { function extendBar() {
@ -440,6 +441,7 @@
}) })
</script> </script>
<% end %> <% end %>
<% end %>
<style> <style>
@media screen and (min-width:539px){ @media screen and (min-width:539px){
<% if(!current_site.orbit_bar_submenu_background_color.blank? rescue false)%> <% if(!current_site.orbit_bar_submenu_background_color.blank? rescue false)%>