pyloid 0.22.0.dev3__py3-none-any.whl → 0.22.0.dev4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyloid/browser_window.py CHANGED
@@ -538,19 +538,23 @@ class _BrowserWindow:
538
538
  });
539
539
 
540
540
  function updateTheme(theme) {
541
- document.documentElement.setAttribute(
542
- 'data-pyloid-theme',
543
- theme
544
- );
541
+ if (typeof document !== 'undefined') {
542
+ document.documentElement.setAttribute(
543
+ 'data-pyloid-theme',
544
+ theme
545
+ );
546
+ }
545
547
  }
546
548
 
547
549
  // 테마 변경 이벤트 리스너
548
- document.addEventListener('themeChange', (e) => {
549
- console.log('themeChange event received:', e);
550
- updateTheme(e.detail.theme);
551
- });
552
-
553
- updateTheme('%s');
550
+ if (typeof document !== 'undefined') {
551
+ document.addEventListener('themeChange', (e) => {
552
+ console.log('themeChange event received:', e);
553
+ updateTheme(e.detail.theme);
554
+ });
555
+
556
+ updateTheme('%s');
557
+ }
554
558
 
555
559
 
556
560
  // Dispatch a custom event to signal that the initialization is ready
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.22.0.dev3
3
+ Version: 0.22.0.dev4
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,7 +1,7 @@
1
1
  pyloid/__init__.py,sha256=4xh7DHBMw2ciDFwI376xcIArhH8GaM4K_NdIa3N0BFo,335
2
2
  pyloid/api.py,sha256=A61Kmddh8BlpT3LfA6NbPQNzFmD95vQ4WKX53oKsGYU,2419
3
3
  pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
4
- pyloid/browser_window.py,sha256=Njwh1Wxu8cEmfqmMlat4-iQioxS8lgz1JD9UHzsfN_g,99683
4
+ pyloid/browser_window.py,sha256=_G9NhqrIp4OrOu1aBKI4WcrD8DE49Hk2HtIh8z5P9QM,99905
5
5
  pyloid/custom/titlebar.py,sha256=itzK9pJbZMQ7BKca9kdbuHMffurrw15UijR6OU03Xsk,3894
6
6
  pyloid/filewatcher.py,sha256=3M5zWVUf1OhlkWJcDFC8ZA9agO4Q-U8WdgGpy6kaVz0,4601
7
7
  pyloid/js_api/base.py,sha256=v2Su9errEY4oBRSXmLZps8dn9qCGbEqwp-hs-MduQRc,826
@@ -14,7 +14,7 @@ pyloid/thread_pool.py,sha256=fKOBb8jMfZn_7crA_fJCno8dObBRZE31EIWaNQ759aw,14616
14
14
  pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
15
15
  pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
16
16
  pyloid/utils.py,sha256=e866N9uyAGHTMYsqRYY4JL0AEMRCOiY-k1c1zmEpDA4,4686
17
- pyloid-0.22.0.dev3.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
18
- pyloid-0.22.0.dev3.dist-info/METADATA,sha256=oBlytnJ0PDiC0Cxr76V_wWDF5VJzeu4BJA2yh0w_9Tg,3071
19
- pyloid-0.22.0.dev3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
- pyloid-0.22.0.dev3.dist-info/RECORD,,
17
+ pyloid-0.22.0.dev4.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
18
+ pyloid-0.22.0.dev4.dist-info/METADATA,sha256=xzJjWFwxXbkMLNhsPf366CZWbUlvKAselovy_wOhZQY,3071
19
+ pyloid-0.22.0.dev4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
+ pyloid-0.22.0.dev4.dist-info/RECORD,,