diff options
Diffstat (limited to 'templates/settings.php')
-rwxr-xr-x | templates/settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/settings.php b/templates/settings.php index bad4856..3573f52 100755 --- a/templates/settings.php +++ b/templates/settings.php @@ -12,8 +12,10 @@ $file = str_replace("href=\"","href=\"".$root."/CarnetElectron/",$file); $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',function ($matches) { global $currentpath; global $appVersion; + global $fullscreen; + if($matches[2] === "libs/jquery.min.js" AND $fullscreen === "no") - return "<script src=\"\""; + return "<script "; return "<script".$matches[1]."src=\"".$matches[2]."?v=".$appVersion."\""; }, $file); // token is needed to pass the csfr check |