fix: pdf viewer template strings (#24913)

This commit is contained in:
Shelley Vohr 2020-08-10 22:46:58 -07:00 committed by GitHub
parent 47d451ae52
commit 7ded768743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View file

@ -209,7 +209,7 @@ void CommonWebContentsDelegate::InitWithWebContents(
web_contents, std::make_unique<ElectronPDFWebContentsHelperClient>());
#endif
// Determien whether the WebContents is offscreen.
// Determine whether the WebContents is offscreen.
auto* web_preferences = WebContentsPreferences::From(web_contents);
offscreen_ =
web_preferences && web_preferences->IsEnabled(options::kOffscreen);