# frozen_string_literal: true module Onebox module Engine class GoogleCalendarOnebox include Engine matches_regexp /^(https?:)?\/\/((www|calendar)\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/ always_https requires_iframe_origins "https://calendar.google.com" def to_html url = @url.split('&').first src = ::Onebox::Helpers.normalize_url_for_output(url) "" end def placeholder_html <<-HTML
Google Calendar