Skip to content

Commit 63be97b

Browse files
committed
Make this a suggestion instead of a default
Otherwise Chrome is going to prompt automatically to install the app as a web app. Thats a bit too much out of the box.
1 parent 5c0b749 commit 63be97b

File tree

1 file changed

+2
-2
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+2
-2
lines changed

railties/lib/rails/generators/rails/app/templates/config/routes.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Rails.application.routes.draw do
77

88
<%- unless options.api? -%>
99
# Render dynamic PWA files from app/views/pwa/*
10-
get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
11-
get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
10+
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
11+
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
1212

1313
<%- end -%>
1414
# Defines the root path route ("/")

0 commit comments

Comments
 (0)