move log to util.js

This commit is contained in:
Skip R. 2018-07-13 19:01:24 -07:00
parent 267ddc890f
commit 5cae7b9658
No known key found for this signature in database
GPG key ID: 1508C19D7436A26D
2 changed files with 10 additions and 10 deletions

View file

@ -1,18 +1,10 @@
import React, { Component } from 'react';
import './App.css';
import Service from './Service.js';
import ServicePlaceholder from './ServicePlaceholder.js';
import './App.css';
import OP from './ws/op.js';
const log = (...args) => {
console.log(
'%c[elstat]%c',
'color: purple; font-weight: bold',
'color: inherit; font-weight: inherit',
...args,
);
};
import { log } from './util.js';
const DOMAIN = 'https://elstatus.stayathomeserver.club';
// const ENDPOINT = 'http://localhost:8069/api/status'

View file

@ -0,0 +1,8 @@
export function log(...args) {
console.log(
'%c[elstat]%c',
'color: purple; font-weight: bold',
'color: inherit; font-weight: inherit',
...args,
);
}