module ApplicationHelper::Amp::Components::ServiceworkerTagHelper
Public Instance Methods
amp_serviceworker(register_url, install_url, options = {})
click to toggle source
# File lib/generators/templates/components/helpers/serviceworker_tag_helper.rb, line 4 def amp_serviceworker(register_url, install_url, options = {}) options = options.symbolize_keys options[:src] = register_url options[:"data-iframe-src"] = install_url options[:layout] = "nodisplay" content_tag("amp-install-serviceworker", options) end