Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Misotheism committed Feb 23, 2021
1 parent bbae0b6 commit 129c2b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,8 @@ const createWindow = () => {
mainWindow.show();

mainWindow.loadURL(startUrl).then(() => {
console.info('pyCat ');
process.env.DEV && mainWindow.webContents.openDevTools();
});
console.log('LOOK here:');
console.log(startUrl);
console.log(String(Object.assign(new URL('http://localhost:3000'),
{pathname: ''}
)));
process.env.DEV && mainWindow.webContents.openDevTools();

mainWindow.on('closed', function() {
pycatService.shutdown();
Expand Down
2 changes: 1 addition & 1 deletion src/jsx/Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Converter = (props) => {
* @param {object} message - response
*/
const onMessage = (message) => {
console.log(message);
console.info(message);
};

/**
Expand Down
4 changes: 2 additions & 2 deletions src/jsx/socket.io/Socket.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class Socket extends React.Component {
this.socket.status = 'initialized';

this.socket.on('connect', () => {
console.log('socket.io connect');
console.info('[Socket] connect');
this.socket.status = 'connected';
debug('connected');
});

this.socket.on('disconnect', () => {
console.log('socket.io disconnect');
console.info('[Socket] disconnect');
this.socket.status = 'disconnected';
debug('disconnect');
});
Expand Down
6 changes: 3 additions & 3 deletions src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function register(config) {
// Add some additional logging to localhost, pointing developers to the
// service worker/PWA documentation.
navigator.serviceWorker.ready.then(() => {
console.log(
console.info(
'This web app is being served cache-first by a service ' +
'worker. To learn more, visit https://bit.ly/CRA-PWA',
);
Expand Down Expand Up @@ -75,7 +75,7 @@ function registerValidSW(swUrl, config) {
// At this point, the updated precached content has been fetched,
// but the previous service worker will still serve the older
// content until all client tabs are closed.
console.log(
console.info(
'New content is available and will be used when all ' +
'tabs for this page are closed. See https://bit.ly/CRA-PWA.',
);
Expand All @@ -88,7 +88,7 @@ function registerValidSW(swUrl, config) {
// At this point, everything has been precached.
// It's the perfect time to display a
// "Content is cached for offline use." message.
console.log('Content is cached for offline use.');
console.info('Content is cached for offline use.');

// Execute callback
if (config && config.onSuccess) {
Expand Down

0 comments on commit 129c2b3

Please sign in to comment.