Skip to content

Commit

Permalink
Fixes snippet when option('debug') was null
Browse files Browse the repository at this point in the history
  • Loading branch information
iskrisis authored Feb 22, 2023
1 parent db48203 commit dfeba48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/plausible.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php if(option('debug') === false && !kirby()->user()): ?>
<?php if(option('debug') !== true && !kirby()->user()): ?>
<script defer data-domain="<?= option('floriankarsten.plausible.domain') ?? parse_url($kirby->url('index'))['host'] ?>" src="https://plausible.io/js/plausible.js"></script>
<?php endif; ?>
<?php endif; ?>

0 comments on commit dfeba48

Please sign in to comment.