2
0
Fork 0
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:
Penar Musaraj 2017-10-30 19:46:48 -04:00 committed by Sam
parent d955af5960
commit bd1616d3d9
5 changed files with 118 additions and 2 deletions

View 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