mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Add offline route and service worker to fix Android app install banner (#5217)
* set up static offline.html route and service worker for Android Web App Banner * add viewport meta tag to offline view for android app banner * add i18n support for offline.html pages, cleanup * fix html syntax, add page title, remove license for service-worker.js
This commit is contained in:
parent
d955af5960
commit
bd1616d3d9
5 changed files with 118 additions and 2 deletions
8
app/controllers/offline_controller.rb
Normal file
8
app/controllers/offline_controller.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
class OfflineController < ApplicationController
|
||||
layout false
|
||||
skip_before_filter :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||
|
||||
def index
|
||||
render :offline, content_type: 'text/html'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue