fix gist publish alert

pull/1/head
yann300 7 years ago
parent 070a0d4110
commit 1366f359c9
  1. 2
      src/app.js
  2. 5
      src/app/files-tab.js

@ -1,4 +1,4 @@
/* global confirm, prompt, Option, Worker, chrome */
/* global confirm, Option, Worker, chrome */
'use strict'
var async = require('async')

@ -1,6 +1,7 @@
/* global alert, confirm, prompt */
/* global confirm, prompt */
var yo = require('yo-yo')
var $ = require('jquery')
var modalDialogCustom = require('./modal-dialog-custom')
var QueryParams = require('./query-params')
var queryParams = new QueryParams()
@ -70,7 +71,7 @@ function filesTab (container, appAPI, events, opts) {
}
}).fail(function (xhr, text, err) {
console.log('fail', text)
alert('Failed to create gist: ' + (err || 'Unknown transport error'))
modalDialogCustom.alert('Failed to create gist: ' + (err || 'Unknown transport error'))
})
}
})

Loading…
Cancel
Save