Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Dobrzynski committed Feb 1, 2018
1 parent 08b11f4 commit 967d9e5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export class AppComponent {
) {
if (electronService.isElectron()) {
console.log('Mode electron');
// Check if electron is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.ipcRenderer);
// Check if nodeJs childProcess is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.childProcess);
} else {
console.log('Mode web');
Expand Down
3 changes: 0 additions & 3 deletions src/app/providers/electron.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Injectable } from '@angular/core';

// If you import a module but never use any of the imported values other than as TypeScript types,
// the resulting javascript file will look as if you never imported the module at all.
import { ipcRenderer } from 'electron';
import * as childProcess from 'child_process';

Expand All @@ -12,7 +10,6 @@ export class ElectronService {
childProcess: typeof childProcess;

constructor() {
// Conditional imports
if (this.isElectron()) {
this.ipcRenderer = window.require('electron').ipcRenderer;
this.childProcess = window.require('child_process');
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class ApiService {
let newItem = {
date: data.date,
duration: Math.round(data.duration / 60),
description: "Added by T-Rec App"
description: "Added by T-REC App"
}

return new Promise(resolve => {
Expand Down
1 change: 0 additions & 1 deletion src/app/theme/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
$white: #ffffff;
$dark: #000000;

// non-default
$menu-color: #25292d;
$content-color: #3b3e42;
$border-color: #575757;
Expand Down

0 comments on commit 967d9e5

Please sign in to comment.