mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2025-01-05 09:23:47 +01:00
cleanup
This commit is contained in:
parent
da12939253
commit
dd8ab3263c
4
index.js
4
index.js
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user