IMPR: Offline enabled manifest.json option

This commit is contained in:
Tony Air 2021-01-11 17:27:52 +07:00
parent dcab3837dc
commit fc8718140b

View File

@ -43,6 +43,7 @@ class ManifestController extends Controller
'name' => $title,
'short_name' => $title,
'description' => $desc,
'offline_enabled' => true,
'start_url' => Director::baseURL(),
'scope' => Director::baseURL(),
'permissions' => [
@ -110,7 +111,7 @@ class ManifestController extends Controller
$gcm_sender_id = $cfg->get('gcm_sender_id');
if($gcm_sender_id) {
if ($gcm_sender_id) {
$manifestContent['gcm_sender_id'] = $gcm_sender_id;
$manifestContent['gcm_user_visible_only'] = true;
}