remove epapi6 bs

This commit is contained in:
Cynthia Foxwell 2018-06-15 17:50:37 -06:00
parent 7ebafb218c
commit fab5d4682c
3 changed files with 482 additions and 506 deletions

View File

@ -25,13 +25,7 @@ var internal = {
}
if (window.$api === undefined && typeof $api != 'undefined') {
console.warn('$api is defined, but window.$api is not! assuming we are running under epapi6 and exporting an empty object...');
exports = {};
}
else
exports = {
module.exports = {
manifest: {
replacements: [

View File

@ -16,14 +16,7 @@
https://github.com/endpwn/
*/
if (window.$api === undefined && typeof $api != 'undefined') {
console.warn('$api is defined, but window.$api is not! assuming we are running under epapi6 and exporting an empty object...');
exports = {};
}
else
exports = {
module.exports = {
manifest: {
replacements: [
{

View File

@ -28,15 +28,8 @@ var internal = {
}
if (window.$api === undefined && typeof $api != 'undefined') {
console.warn('$api is defined, but window.$api is not! assuming we are running under epapi6 and exporting an empty object...');
exports = {};
}
else
exports = {
module.exports = {
manifest: {
replacements: [
// changelog injection
@ -55,7 +48,6 @@ else
},
preload: function () {
window.reload = () => { app.relaunch(); app.exit(); };
window.endpwn = {
@ -162,7 +154,6 @@ else
// check for epapi updates
if ($api.lite || !fs.existsSync($api.data + '/DONTUPDATE'))
(function () {
internal.print('checking for EPAPI updates...');
// fetch the latest build of epapi
@ -202,7 +193,5 @@ else
});
})();
}
}