0
0
mirror of https://github.com/Doodle3D/Doodle3D-Core.git synced 2025-05-10 17:33:21 +02:00
This commit is contained in:
casperlamboo 2018-02-14 17:20:30 +01:00
parent 9101a6325a
commit 07c5d0635c

@ -50,7 +50,7 @@ window.downloadSketch = () => {
window.addEventListener('keydown', (event) => {
// downloadSketch
const key = keycode(event);
if (key === 's') downloadSketch();
if (key === 's') window.downloadSketch();
console.log(event.shiftKey, key);
});
@ -91,10 +91,7 @@ async function init() {
render((
<Provider store={store}>
<span>
<App />
<div onTouchTap={downloadSketch} style={{ position: 'absolute', right: 0, top: 0, backgroundImage: `url(${btnExportURL})`, width: "65px", height: "78px", backgroundSize: "65px 78px", cursor: "pointer" }}></div>
</span>
</Provider>
), document.getElementById('app'));
}