rename sketch file to doodle3d

This commit is contained in:
Casper Lamboo 2018-06-21 16:10:13 +02:00
parent 853d8a5c7e
commit c55750613f
3 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ window.downloadSketch = () => {
const state = getState();
const json = sketchDataToJSON(state.sketcher.present);
const blob = JSONToBlob(json);
saveAsLib(blob, 'doodle.d3sketch');
saveAsLib(blob, 'doodle.doodle3d');
});
};

View File

@ -110,6 +110,7 @@ class App extends React.Component {
const extentions = file.name.split('.').pop();
switch (extentions.toUpperCase()) {
case 'DOODLE3D':
case 'D3SKETCH':
case 'JSON':
const url = URL.createObjectURL(file);

View File

@ -64,7 +64,7 @@ module.exports = {
loader: 'url-loader?name=images/[name].[ext]'
}
}, {
test: /\.(svg|glsl|d3sketch)$/,
test: /\.(svg|glsl|d3sketch|doodle3d)$/,
use: {
loader: 'raw-loader'
}