Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit bdcff32

Browse files
committed
Fixing missing fingerprinting default
1 parent ff0478f commit bdcff32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/css.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function tag($url, $media = null)
4545
$cssInput = (new Asset($url))->content();
4646
$cssIntegrity = sri_checksum($cssInput);
4747

48-
if (c::get('fingerprinting')) {
48+
if (c::get('plugin.kirby-sri.fingerprinting', true)) {
4949
// add timestamp for cache-busting
5050
$modified = filemtime($url);
5151
$filename = f::name($url) . '.' . $modified . '.' . f::extension($url);

core/js.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function tag($src, $async = false)
4545
$jsInput = (new Asset($src))->content();
4646
$jsIntegrity = sri_checksum($jsInput);
4747

48-
if (c::get('fingerprinting')) {
48+
if (c::get('plugin.kirby-sri.fingerprinting', true)) {
4949
// add timestamp for cache-busting
5050
$modified = filemtime($src);
5151
$filename = f::name($src) . '.' . $modified . '.' . f::extension($src);

0 commit comments

Comments
 (0)