mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: remove outdated code
This commit is contained in:
3 files changed
-20
No files matched your search
@@ -14,8 +14,6 @@ import {
|
||||
} from './src/app/shared/ipc-commands';
|
||||
|
||||
const fs = require('fs');
|
||||
const join = require('path').join;
|
||||
const openAboutWindow = require('about-window').default;
|
||||
const userData = app.getPath('userData');
|
||||
const db = new Nedb<Playlist>({
|
||||
filename: `${userData}/db/data.db`,
|
||||
@@ -89,14 +87,6 @@ export class Api {
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.on('show-about', () => {
|
||||
openAboutWindow({
|
||||
icon_path: join(__dirname, 'dist/assets/icons/icon.png'),
|
||||
copyright: 'Copyright (c) 2020 4gray',
|
||||
package_json_dir: __dirname,
|
||||
});
|
||||
});
|
||||
|
||||
// open playlist from file system
|
||||
ipcMain.on('open-file', (event, args) => {
|
||||
fs.readFile(args.filePath, 'utf-8', (err, data) => {
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
</button>
|
||||
{{ activeChannel.name }}
|
||||
<div class="spacer"></div>
|
||||
<!-- <button mat-icon-button (click)="openAbout()">
|
||||
<mat-icon>info</mat-icon>
|
||||
</button> -->
|
||||
<button
|
||||
*ngIf="epgAvailable$ | async"
|
||||
mat-button
|
||||
|
||||
@@ -91,13 +91,6 @@ export class VideoPlayerComponent implements OnInit {
|
||||
this.sideNav.close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens about application dialog
|
||||
*/
|
||||
openAbout(): void {
|
||||
this.electronService.ipcRenderer.send('show-about');
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds/removes a given channel to the favorites list
|
||||
* @param channel channel to add
|
||||
|
||||
Reference in new issue
Block a user