mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 07:41:04 +00:00
parent
ec0ea4bd67
commit
c4356e48f1
@ -190,22 +190,25 @@ if (shouldQuit) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (appArgs.widevine !== undefined) {
|
if (appArgs.widevine) {
|
||||||
// @ts-ignore This event only appear on the widevine version of electron, which we'd see at runtime
|
// @ts-ignore This event only appears on the widevine version of electron, which we'd see at runtime
|
||||||
app.on('widevine-ready', (version, lastVersion) => {
|
app.on('widevine-ready', (version: string, lastVersion: string) => {
|
||||||
console.log('widevine-ready', version, lastVersion);
|
console.log('widevine-ready', version, lastVersion);
|
||||||
onReady();
|
onReady();
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore This event only appear on the widevine version of electron, which we'd see at runtime
|
app.on(
|
||||||
app.on('widevine-update-pending', (currentVersion, pendingVersion) => {
|
// @ts-ignore This event only appears on the widevine version of electron, which we'd see at runtime
|
||||||
console.log(
|
'widevine-update-pending',
|
||||||
`Widevine ${currentVersion} is ready to be upgraded to ${pendingVersion}`,
|
(currentVersion: string, pendingVersion: string) => {
|
||||||
);
|
console.log(
|
||||||
});
|
`Widevine ${currentVersion} is ready to be upgraded to ${pendingVersion}`,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
// @ts-ignore This event only appear on the widevine version of electron, which we'd see at runtime
|
// @ts-ignore This event only appears on the widevine version of electron, which we'd see at runtime
|
||||||
app.on('widevine-error', (error) => {
|
app.on('widevine-error', (error: any) => {
|
||||||
console.error('WIDEVINE ERROR: ', error);
|
console.error('WIDEVINE ERROR: ', error);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user