Add jpeg 2000 to the list.

This commit is contained in:
Donovan Preston 2018-07-27 10:50:10 -04:00
parent e3601055fc
commit ac1c7c2363
No known key found for this signature in database
GPG Key ID: B43EF44E428C806E
2 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ import WebKit
import MobileCoreServices import MobileCoreServices
var typesToLoad = [("com.adobe.pdf", "application/pdf"), ("public.png", "image/png"), var typesToLoad = [("com.adobe.pdf", "application/pdf"), ("public.png", "image/png"),
("public.jpeg", "image/jpeg"), ("com.compuserve.gif", "image/gif"), ("public.jpeg", "image/jpeg"), ("public.jpeg-2000", "image/jp2"),
("com.microsoft.bmp", "image/bmp"), ("public.plain-text", "text/plain")] ("com.compuserve.gif", "image/gif"), ("com.microsoft.bmp", "image/bmp"),
("public.plain-text", "text/plain")]
class ActionViewController: UIViewController, WKScriptMessageHandler { class ActionViewController: UIViewController, WKScriptMessageHandler {