main
Mike Fix 6 years ago
parent d44fe06e28
commit 9a86e7e7c4

@ -38,9 +38,8 @@ import { getState, escapeHtml, unescapeHtml } from '../lib/util'
const saveButtonOptions = { const saveButtonOptions = {
button: true, button: true,
color: '#c198fb', color: '#c198fb',
selected: { id: 'SAVE_IMAGE', name: 'Export Image' }, selected: { id: 'SAVE_IMAGE', name: 'Save Image' },
list: ['png', 'svg', 'copy embed', 'open ↗'].map(id => ({ id, name: id.toUpperCase() })), list: ['png', 'svg', 'open ↗'].map(id => ({ id, name: id.toUpperCase() }))
itemWrapper: props => <ExportButton {...props} />
} }
class Editor extends React.Component { class Editor extends React.Component {

@ -1,7 +1,7 @@
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') // const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
const withOffline = require('next-offline') // const withOffline = require('next-offline')
module.exports = (phase /* { defaultConfig } */) => { module.exports = (/* phase { defaultConfig } */) => {
const config = { const config = {
async exportPathMap() { async exportPathMap() {
return { return {
@ -19,9 +19,5 @@ module.exports = (phase /* { defaultConfig } */) => {
} }
} }
if (phase === PHASE_DEVELOPMENT_SERVER) {
return config return config
} }
return withOffline(config)
}

Loading…
Cancel
Save