Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Use standalone display mode in PWA manifest (#4634)

Rajkumar Neupane135b6a699ff2
diff --git a/app/views/pwa/manifest.json.erb b/app/views/pwa/manifest.json.erb
index ca13d1f363..9018670a04 100644
--- a/app/views/pwa/manifest.json.erb
+++ b/app/views/pwa/manifest.json.erb
@@ -43,7 +43,6 @@
],
"start_url": "/",
"display": "standalone",
- "display_override": ["window-controls-overlay", "minimal-ui"],
"scope": "/",
"orientation": "any",
"description": "<%= j product_name %> is your personal finance assistant.",
diff --git a/test/controllers/pwa_controller_test.rb b/test/controllers/pwa_controller_test.rb
index a82244df5e..e3dce22d33 100644
--- a/test/controllers/pwa_controller_test.rb
+++ b/test/controllers/pwa_controller_test.rb
@@ -7,6 +7,8 @@ class PwaControllerTest < ActionDispatch::IntegrationTest
assert_response :success
assert_equal "application/manifest+json", response.media_type
assert_includes response.body, '"start_url": "/"'
+ assert_includes response.body, '"display": "standalone"'
+ refute_includes response.body, "display_override"
end
test "service worker responds successfully without origin or referer headers" do