Skip to content

Commit

Permalink
Fix if let issue
Browse files Browse the repository at this point in the history
  • Loading branch information
repalash committed Sep 15, 2023
1 parent 17611c3 commit 76aaca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PreviewExtension/PreviewViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 76aaca0

Please sign in to comment.