Skip to content

Commit

Permalink
Fix page direction detection?
Browse files Browse the repository at this point in the history
  • Loading branch information
FrutyX authored Aug 24, 2022
1 parent d5a87ed commit 04e7bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/core/source/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ var gca_global = {

// Check page direction ltr or rtl
if(
!document.querySelectorAll('link')[1+s].getAttribute("href").match("rtl_") &&
!document.querySelectorAll('link')[2+s].getAttribute("href").match("rtl_")
!document.querySelectorAll('link')[1+s].getAttribute("css").match("rtl_") &&
!document.querySelectorAll('link')[2+s].getAttribute("css").match("rtl_")
){
window.gca_rtl = false;
return;
Expand Down

0 comments on commit 04e7bc1

Please sign in to comment.