Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
akless committed Apr 23, 2024
1 parent ebc233f commit f43415b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lang/ccm.lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
if ( context )
this.active = context.active; // detect from highest instance
else {
if ( !this.active ) this.active = this.helper.params().lang; // detect from URL parameter
if ( !this.active ) this.active = new URLSearchParams( window.location.search ).get( 'lang' ); // detect from URL parameter
if ( !this.active ) this.active = document.body.getAttribute( 'lang' ); // detect from <body lang="">
if ( !this.active ) this.active = navigator.language; // detect from browser
this.active = this.active.split( '-' )[ 0 ].toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion lang/ccm.lang.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lang/ccm.lang.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lang/versions/ccm.lang-1.2.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
if ( context )
this.active = context.active; // detect from highest instance
else {
if ( !this.active ) this.active = this.helper.params().lang; // detect from URL parameter
if ( !this.active ) this.active = new URLSearchParams( window.location.search ).get( 'lang' ); // detect from URL parameter
if ( !this.active ) this.active = document.body.getAttribute( 'lang' ); // detect from <body lang="">
if ( !this.active ) this.active = navigator.language; // detect from browser
this.active = this.active.split( '-' )[ 0 ].toLowerCase();
Expand Down
Loading

0 comments on commit f43415b

Please sign in to comment.