From 76aaca07b302891a37ea78866e972b3800d8fc6f Mon Sep 17 00:00:00 2001 From: Palash Bansal Date: Sat, 16 Sep 2023 00:33:03 +0530 Subject: [PATCH] Fix if let issue --- PreviewExtension/PreviewViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PreviewExtension/PreviewViewController.swift b/PreviewExtension/PreviewViewController.swift index b8a3057..98b6877 100644 --- a/PreviewExtension/PreviewViewController.swift +++ b/PreviewExtension/PreviewViewController.swift @@ -80,8 +80,8 @@ class PreviewViewController: NSViewController, QLPreviewingController, WKUIDeleg fatalError("Unable to load QuickLookJS configuration: \(error.localizedDescription)") } - if let drawsBackground = configuration.drawsBackground { - webView.setValue(drawsBackground, forKey:"drawsBackground") + if configuration.drawsBackground == false { + webView.setValue(configuration.drawsBackground, forKey:"drawsBackground") } super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)