docs: add support for readonly,deprecated and platform doc annotations (#19478)

This commit is contained in:
Samuel Attard
2019-07-26 16:12:59 -07:00
committed by GitHub
parent 12bbbef688
commit db3cf52add
12 changed files with 53 additions and 68 deletions

View File

@@ -37,7 +37,7 @@ Object.defineProperty(app, 'applicationMenu', {
}
})
app.isPackaged = (() => {
App.prototype.isPackaged = (() => {
const execFile = path.basename(process.execPath).toLowerCase()
if (process.platform === 'win32') {
return execFile !== 'electron.exe'