🐛 Fix crash on iOS when displaying viewer

This commit is contained in:
alonso.torres 2022-03-16 21:51:02 +01:00
parent 8acc9af1f5
commit 89e2f4a481
4 changed files with 17 additions and 9 deletions

View file

@ -8,11 +8,13 @@
"HTML5 web api helpers."
(:require
[app.common.data :as d]
[app.common.exceptions :as ex]
[app.common.logging :as log]
[app.util.object :as obj]
[beicon.core :as rx]
[cuerdas.core :as str]))
(log/set-level! :warn)
(defn- file-reader
[f]
(rx/create
@ -114,8 +116,9 @@
(.webkitRequestFullscreen el)
:else
(ex/raise :type :not-supported
:hint "seems like the current browser does not support fullscreen api.")))
(do
(log/error :msg "Seems like the current browser does not support fullscreen api.")
false)))
(defn exit-fullscreen
[]
@ -127,8 +130,9 @@
(.webkitExitFullscreen js/document)
:else
(ex/raise :type :not-supported
:hint "seems like the current browser does not support fullscreen api.")))
(do
(log/error :msg "Seems like the current browser does not support fullscreen api.")
false)))
(defn observe-resize
[node]