mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
9 lines
226 B
Python
9 lines
226 B
Python
from pyscript import document
|
|
|
|
classList = document.documentElement.classList
|
|
|
|
if not __terminal__: # noqa: F821 __terminal__ is defined in core/src/plugins/donkey.js
|
|
classList.add("error")
|
|
else:
|
|
classList.add("ok")
|