diff options
-rwxr-xr-x | appinfo/info.xml | 2 | ||||
-rwxr-xr-x | templates/index.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index fd8c3a1..788ef8e 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -31,7 +31,7 @@ Mac, with sync capabilities <filesystem/> </types> <dependencies> - <nextcloud min-version="13" max-version="15"/> + <nextcloud min-version="13" max-version="16"/> </dependencies> <navigations> <navigation> diff --git a/templates/index.php b/templates/index.php index 352ccdd..e6a1d0b 100755 --- a/templates/index.php +++ b/templates/index.php @@ -19,8 +19,11 @@ $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',functi return "<script".$matches[1]."src=\"".$matches[2]."?mtime=".filemtime($currentpath.$matches[2])."\""; }, $file); -if($_['carnet_display_fullscreen']==="yes") +if($_['carnet_display_fullscreen']==="yes"){ script("carnet","../templates/CarnetElectron/compatibility/nextcloud/browser_fullscreen"); + if($_['nc_version']>=16) + style("carnet","../templates/CarnetElectron/compatibility/nextcloud/nc16"); +} else { if($_['nc_version']>=14) style("carnet","../templates/CarnetElectron/compatibility/nextcloud/nc14-header"); |