Merge pull request #1402 from ethereum/loadOrder

pull/1401/head^2
bunsenstraat 3 years ago committed by GitHub
commit fb9f19e7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      apps/remix-ide/src/app.js

@ -361,6 +361,9 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
settings settings
]) ])
const queryParams = new QueryParams()
const params = queryParams.get()
const onAcceptMatomo = () => { const onAcceptMatomo = () => {
_paq.push(['forgetUserOptOut']) _paq.push(['forgetUserOptOut'])
// @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used // @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used
@ -368,12 +371,21 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
settings.updateMatomoAnalyticsChoice(true) settings.updateMatomoAnalyticsChoice(true)
const el = document.getElementById('modal-dialog') const el = document.getElementById('modal-dialog')
el.parentElement.removeChild(el) el.parentElement.removeChild(el)
startWalkthroughService()
} }
const onDeclineMatomo = () => { const onDeclineMatomo = () => {
settings.updateMatomoAnalyticsChoice(false) settings.updateMatomoAnalyticsChoice(false)
_paq.push(['optUserOut']) _paq.push(['optUserOut'])
const el = document.getElementById('modal-dialog') const el = document.getElementById('modal-dialog')
el.parentElement.removeChild(el) el.parentElement.removeChild(el)
startWalkthroughService()
}
const startWalkthroughService = () => {
const walkthroughService = new WalkthroughService(localStorage)
if (!params.code && !params.url && !params.minimizeterminal && !params.gist && !params.minimizesidepanel) {
walkthroughService.start()
}
} }
// Ask to opt in to Matomo for remix, remix-alpha and remix-beta // Ask to opt in to Matomo for remix, remix-alpha and remix-beta
@ -469,9 +481,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
await appManager.activatePlugin(['settings']) await appManager.activatePlugin(['settings'])
await appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'filePanel', 'contextualListener', 'terminal', 'fetchAndCompile', 'contentImport']) await appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'filePanel', 'contextualListener', 'terminal', 'fetchAndCompile', 'contentImport'])
const queryParams = new QueryParams()
const params = queryParams.get()
// Set workspace after initial activation // Set workspace after initial activation
if (Array.isArray(workspace)) { if (Array.isArray(workspace)) {
appManager.activatePlugin(workspace).then(async () => { appManager.activatePlugin(workspace).then(async () => {
@ -506,8 +515,5 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
if (params.embed) framingService.embed() if (params.embed) framingService.embed()
framingService.start(params) framingService.start(params)
const walkthroughService = new WalkthroughService(localStorage) startWalkthroughService()
if (!params.code) {
walkthroughService.start()
}
} }

Loading…
Cancel
Save