Remove legacy mobile web-capable
This commit is contained in:
parent
d443401361
commit
5b6cef0679
6 changed files with 24 additions and 8 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
22
app/controllers/manifest_controller.rb
Normal file
22
app/controllers/manifest_controller.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ManifestController < ApplicationController
|
||||
def show
|
||||
render json: '{
|
||||
"short_name": "diaspora*",
|
||||
"name": "diaspora*",
|
||||
"description": "diaspora* is a free, decentralized and privacy respectful social network",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icon.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
}
|
||||
],
|
||||
"start_url": "/",
|
||||
"background_color": "#000000",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000"
|
||||
}'
|
||||
end
|
||||
end
|
||||
|
|
@ -4,8 +4,6 @@
|
|||
%meta{charset: "utf-8"}/
|
||||
= content_for?(:meta_data) ? yield(:meta_data) : metas_tags
|
||||
|
||||
%meta{content: "yes", name: "mobile-web-app-capable"}/
|
||||
|
||||
/ favicon
|
||||
/ For Apple devices
|
||||
%link{rel: "apple-touch-icon", href: image_path("apple-touch-icon.png")}
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
= load_javascript_locales
|
||||
|
||||
= include_color_theme
|
||||
= render "head"
|
||||
= render "layouts/head"
|
||||
= translation_missing_warnings
|
||||
|
||||
%body{class: "page-#{controller_name} action-#{action_name}"}
|
||||
|
|
|
|||
|
|
@ -17,11 +17,6 @@
|
|||
%meta{name: "MobileOptimized", content: "320"}/
|
||||
%meta{"http-equiv" => "cleartype", :content => "on"}/
|
||||
|
||||
/ iOS mobile web app indicator
|
||||
/ NOTE(we will enable these once we don't have to rely on back/forward buttons anymore)
|
||||
/%meta{:name => "apple-mobile-web-app-capable", :content => "yes"}
|
||||
/%link{:rel => "apple-touch-startup-image", :href => "/images/apple-splash.png"}
|
||||
|
||||
%body
|
||||
#app
|
||||
= render "layouts/header"
|
||||
|
|
|
|||
|
|
@ -239,4 +239,5 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
get ".well-known/openid-configuration", to: "api/openid_connect/discovery#configuration"
|
||||
get "manifest.json", to: "manifest#show"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue