mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added toBoolean
string prototype
This commit is contained in:
parent
fb632d7523
commit
64aed20214
@ -19,6 +19,10 @@ String.prototype.toTitleCase = function () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String.prototype.toBoolean = function () {
|
||||||
|
return this === "true"
|
||||||
|
}
|
||||||
|
|
||||||
Promise.tasked = function (promises) {
|
Promise.tasked = function (promises) {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
let rejected = false
|
let rejected = false
|
||||||
@ -76,6 +80,8 @@ class App extends React.Component {
|
|||||||
static async initialize() {
|
static async initialize() {
|
||||||
window.app.version = config.package.version
|
window.app.version = config.package.version
|
||||||
|
|
||||||
|
window.app.message = antd.message
|
||||||
|
|
||||||
// check if electron library is available
|
// check if electron library is available
|
||||||
if (typeof window.electron !== "undefined") {
|
if (typeof window.electron !== "undefined") {
|
||||||
window.isElectron = true
|
window.isElectron = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user