Transpile infodisplay to support older browsers
This commit is contained in:
parent
731d6ce04c
commit
09e5147859
4 changed files with 3 additions and 8 deletions
|
@ -4,7 +4,6 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>c-flo info display</title>
|
<title>c-flo info display</title>
|
||||||
<script src="/dist/infodisplay.js" type="text/javascript"></script>
|
<script src="/dist/infodisplay.js" type="text/javascript"></script>
|
||||||
<script src="infodisplay.js" type="text/javascript"></script>
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const { msgflo } = window.infodisplay;
|
import msgflo from 'msgflo-browser';
|
||||||
|
|
||||||
let timeout = null;
|
let timeout = null;
|
||||||
|
|
||||||
function getRotationUrl(urls, current) {
|
function getRotationUrl(urls, current) {
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
import msgflo from 'msgflo-browser';
|
|
||||||
|
|
||||||
export {
|
|
||||||
msgflo,
|
|
||||||
};
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
infoscreens: './index.js',
|
infoscreens: './index.js',
|
||||||
infodisplay: './msgflo.js',
|
infodisplay: './infodisplay/infodisplay.js',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: __dirname,
|
path: __dirname,
|
||||||
|
|
Loading…
Reference in a new issue