refacto: moved to src
This commit is contained in:
parent
4f221a2d9c
commit
63ac22d6c8
16
src/entry.js
Normal file
16
src/entry.js
Normal file
@ -0,0 +1,16 @@
|
||||
import "./keybinds";
|
||||
import "./whiteboard";
|
||||
import "./main";
|
||||
import "../assets/css/main.css"
|
||||
|
||||
//Set correct width height on mobile browsers
|
||||
const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
||||
if (isChrome) {
|
||||
$('head').append('<meta name="viewport" content="width=device-width, initial-scale=0.52, maximum-scale=1" />');
|
||||
} else {
|
||||
$('head').append('<meta name="viewport" content="width=1400" />');
|
||||
}
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept();
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
import keymage from "keymage";
|
||||
|
||||
var whiteboardId = getQueryVariable("whiteboardid");
|
||||
var randomid = getQueryVariable("randomid");
|
||||
if (randomid && !whiteboardId) { //set random whiteboard on empty whiteboardid
|
Loading…
Reference in New Issue
Block a user