mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2025-01-03 08:33:48 +01:00
cleanup
This commit is contained in:
parent
9101a6325a
commit
07c5d0635c
5
index.js
5
index.js
@ -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') window.downloadSketch();
|
||||||
console.log(event.shiftKey, key);
|
console.log(event.shiftKey, key);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -91,10 +91,7 @@ async function init() {
|
|||||||
|
|
||||||
render((
|
render((
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<span>
|
|
||||||
<App />
|
<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>
|
</Provider>
|
||||||
), document.getElementById('app'));
|
), document.getElementById('app'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user