Browse Source

docs: fix typo (#29553)

* Typo fix

* Update main.js
ZReC 3 years ago
parent
commit
330b7849a3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/fiddles/features/macos-dark-mode/main.js
  2. 1 1
      docs/tutorial/dark-mode.md

+ 1 - 1
docs/fiddles/features/macos-dark-mode/main.js

@@ -22,7 +22,7 @@ function createWindow () {
   })
 
   ipcMain.handle('dark-mode:system', () => {
-    nativeTheme.themeSouce = 'system'
+    nativeTheme.themeSource = 'system'
   })
 }
 

+ 1 - 1
docs/tutorial/dark-mode.md

@@ -159,7 +159,7 @@ function createWindow () {
   })
 
   ipcMain.handle('dark-mode:system', () => {
-    nativeTheme.themeSouce = 'system'
+    nativeTheme.themeSource = 'system'
   })
 }