warn if can't load compiler version list

pull/1/head
yann300 7 years ago
parent 5b0ef25407
commit ee1c9d5814
  1. 2
      src/app/tabs/settings-tab.js

@ -7,6 +7,7 @@ var Storage = remixLib.Storage
var styleGuide = remixLib.ui.themeChooser
var helper = require('../../lib/helper')
var modal = require('../ui/modal-dialog-custom')
var tooltip = require('../ui/tooltip')
var css = require('./styles/settings-tab-styles')
@ -194,6 +195,7 @@ function SettingsTab (appAPI = {}, appEvents = {}, opts = {}) {
loadVersion(selectedVersion, queryParams, appAPI, el)
}).fail(function (xhr, text, err) {
tooltip('Cannot load compiler version list. It might have been blocked by an advertisement blocker. Please try deactivating any of them from this page and reload.')
// loading failed for some reason, fall back to local compiler
versionSelector.append(new Option('latest local version', 'builtin'))

Loading…
Cancel
Save