Pārlūkot izejas kodu

Put Firefox app detection in try/catch

Thibaut 10 gadi atpakaļ
vecāks
revīzija
ac6a8880a1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      assets/javascripts/app/app.coffee

+ 1 - 1
assets/javascripts/app/app.coffee

@@ -89,7 +89,7 @@
     @hideLoading()
     @welcomeBack() unless @doc
     @removeEvent 'ready bootError'
-    navigator.mozApps?.getSelf().onsuccess = -> app.mozApp = true
+    try navigator.mozApps?.getSelf().onsuccess = -> app.mozApp = true catch
     return
 
   initDoc: (doc) ->