exposes osRelease to body

This commit is contained in:
booploops 2022-03-28 23:43:09 -07:00
parent 649d735230
commit 023843c375
2 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import {wsapi} from "./wsapi";
import {utils} from './utils';
import {Plugins} from "./plugins";
import {watch} from "chokidar";
import * as os from "os";
const wallpaper = require('wallpaper');
// @ts-ignore
@ -37,6 +38,7 @@ export class BrowserWindow {
env: {
platform: process.platform,
dev: app.isPackaged,
osRelease: os.release(),
components: [
"pages/podcasts",
"pages/apple-account-settings",

View file

@ -61,7 +61,7 @@
</style>
</head>
<body oncontextmenu="return false;" loading="1" platform="<%= env.platform %>">
<body oncontextmenu="return false;" loading="1" os-release="<%= parseInt(env.osRelease) %>" platform="<%= env.platform %>">
<div id="LOADER">
<%- include("../assets/cider-round.svg") %>
</div>