refacto: moved to src

This commit is contained in:
Florent Chehab 2020-04-18 22:15:12 +02:00
parent 4f221a2d9c
commit 63ac22d6c8
No known key found for this signature in database
GPG Key ID: 9A0CE018889EA246
4 changed files with 18 additions and 0 deletions

16
src/entry.js Normal file
View 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();
}

View File

@ -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