Merge pull request #1144 from ethereum/addAlertAdBlock

warn if can't load compiler version list
pull/1/head
yann300 7 years ago committed by GitHub
commit acfca755b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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