pull/6/head
casperlamboo 5 years ago
parent da12939253
commit dd8ab3263c
  1. 4
      index.js
  2. 2
      webpack.config.js

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

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

Loading…
Cancel
Save