This commit is contained in:
casperlamboo 2018-02-14 14:53:07 +01:00
parent da12939253
commit dd8ab3263c
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ window.downloadStl = () => {
}; };
window.downloadSketch = () => { window.downloadSketch = () => {
store.dispatch( (dispatch, getState) => { store.dispatch((dispatch, getState) => {
const state = getState(); const state = getState();
const json = sketchDataToJSON(state.sketcher.present); const json = sketchDataToJSON(state.sketcher.present);
const blob = JSONToBlob(json); const blob = JSONToBlob(json);
@ -50,7 +50,7 @@ window.downloadSketch = () => {
window.addEventListener('keydown',(event) => { window.addEventListener('keydown',(event) => {
// downloadSketch // downloadSketch
const key = keycode(event); const key = keycode(event);
if (key=='s') downloadSketch(); if (key === 's') downloadSketch();
console.log(event.shiftKey, key); console.log(event.shiftKey, key);
}); });

View File

@ -83,7 +83,7 @@ module.exports = {
favicon: './favicon.ico', favicon: './favicon.ico',
template: require('html-webpack-template'), template: require('html-webpack-template'),
inject: false, inject: false,
mobile: true, mobile: false,
scripts: appMode ? ['cordova.js'] : null, scripts: appMode ? ['cordova.js'] : null,
appMountId: 'app', appMountId: 'app',
meta: [ meta: [