diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index ecb60553..352db103 100644 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -19,6 +19,10 @@ String.prototype.toTitleCase = function () { }) } +String.prototype.toBoolean = function () { + return this === "true" +} + Promise.tasked = function (promises) { return new Promise(async (resolve, reject) => { let rejected = false @@ -76,6 +80,8 @@ class App extends React.Component { static async initialize() { window.app.version = config.package.version + window.app.message = antd.message + // check if electron library is available if (typeof window.electron !== "undefined") { window.isElectron = true