mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-23 12:12:59 -05:00
9 lines
180 B
Python
9 lines
180 B
Python
from pyscript import RUNNING_IN_WORKER, document
|
|
|
|
classList = document.documentElement.classList
|
|
|
|
if RUNNING_IN_WORKER:
|
|
classList.add("worker")
|
|
else:
|
|
classList.add("main")
|