mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
IMPR: Offline enabled manifest.json option
This commit is contained in:
parent
dcab3837dc
commit
fc8718140b
@ -43,6 +43,7 @@ class ManifestController extends Controller
|
|||||||
'name' => $title,
|
'name' => $title,
|
||||||
'short_name' => $title,
|
'short_name' => $title,
|
||||||
'description' => $desc,
|
'description' => $desc,
|
||||||
|
'offline_enabled' => true,
|
||||||
'start_url' => Director::baseURL(),
|
'start_url' => Director::baseURL(),
|
||||||
'scope' => Director::baseURL(),
|
'scope' => Director::baseURL(),
|
||||||
'permissions' => [
|
'permissions' => [
|
||||||
@ -110,7 +111,7 @@ class ManifestController extends Controller
|
|||||||
|
|
||||||
|
|
||||||
$gcm_sender_id = $cfg->get('gcm_sender_id');
|
$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_sender_id'] = $gcm_sender_id;
|
||||||
$manifestContent['gcm_user_visible_only'] = true;
|
$manifestContent['gcm_user_visible_only'] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user