move log to util.js

This commit is contained in:
slice 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,
);
}