This repository was archived by the owner on Dec 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 631631 function return_false ( ) { return false ; }
632632
633633 function set_gui_position ( ) {
634- if ( menu_location_bottom === false ) {
634+ if ( typeof $ !== 'undefined' && menu_location_bottom === false ) {
635635 let fixed_menu_bottom = ( parseInt ( $ ( '#fixed_menu' ) . outerHeight ( true ) ) + 2 ) . toString ( ) + 'px' ;
636636 document . getElementById ( 'gui_position' ) . style . marginTop = fixed_menu_bottom ;
637637 } else {
Original file line number Diff line number Diff line change 17931793 function return_false ( ) { return false ; }
17941794
17951795 function set_gui_position ( ) {
1796- if ( menu_location_bottom === false ) {
1796+ if ( typeof $ !== 'undefined' && menu_location_bottom === false ) {
17971797 let fixed_menu_bottom = ( parseInt ( $ ( '#fixed_menu' ) . outerHeight ( true ) ) + 2 ) . toString ( ) + 'px' ;
17981798 document . getElementById ( 'gui_position' ) . style . marginTop = fixed_menu_bottom ;
17991799 } else {
Original file line number Diff line number Diff line change 580580 function return_false ( ) { return false ; }
581581
582582 function set_gui_position ( ) {
583- if ( menu_location_bottom === false ) {
583+ if ( typeof $ !== 'undefined' && menu_location_bottom === false ) {
584584 let fixed_menu_bottom = ( parseInt ( $ ( '#fixed_menu' ) . outerHeight ( true ) ) + 2 ) . toString ( ) + 'px' ;
585585 document . getElementById ( 'gui_position' ) . style . marginTop = fixed_menu_bottom ;
586586 } else {
You can’t perform that action at this time.
0 commit comments