Files
objdiff-web/webview/util/init.ts
T
2025-03-06 21:53:12 -07:00

9 lines
253 B
TypeScript

if (window.webviewProps?.resourceRoot) {
__webpack_public_path__ = window.webviewProps.resourceRoot;
}
const params = new URLSearchParams(window.location.search);
const theme = params.get('theme');
if (theme) {
document.body.classList.add(theme);
}