mirror of
https://github.com/pyscript/pyscript.git
synced 2026-04-06 08:00:26 -04: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")
|