Skip to content

Commit

Permalink
Fix to simplify JSON check
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 23, 2024
1 parent fd63de2 commit dfe5cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
use lib ("$ENV{'PERLLIB'}/vendor_perl");
use Net::WebSocket::Server;
use utf8;
eval "use JSON::XS qw(encode_json decode_json);";
eval "use JSON::XS";
if ($@) {
eval "use JSON::PP qw(encode_json decode_json);";
eval "use JSON::PP";
}

our ($current_theme);
Expand Down

0 comments on commit dfe5cd0

Please sign in to comment.