From ee1c9d58146d87d9e3ef8dda8ba5ec42df7ed88c Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 13 Mar 2018 11:10:25 +0100 Subject: [PATCH] warn if can't load compiler version list --- src/app/tabs/settings-tab.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/tabs/settings-tab.js b/src/app/tabs/settings-tab.js index 65243d5db7..76b3bb17c4 100644 --- a/src/app/tabs/settings-tab.js +++ b/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'))