define('home/apps/ExploreApp',[ 'underscore', 'core/utils/url/parseQueryString', 'core/apps/WindowedApp', ], function ( _, parseQueryString, WindowedApp ) { 'use strict'; var ExploreApp = WindowedApp.extend({ name: 'explore', origin: 'https://disqus.com', events: { 'frame:ready': function () { this.frame.sendMessage('setConfig', _.extend({ highlightUrl: this.settings.highlight }, this.settings.config)); }, 'frame:resize': function (options) { this.frame.setInlineStyle('height', options.height + 'px'); }, }, constructor: function () { WindowedApp.apply(this, arguments); this.settings.config.referrer = window.document.location.href; }, getUrl: function () { var params = parseQueryString(); if (params.mtctest === 'true') { return 'https://disqus.com/pages/?mtctest=true'; } if (params.mtctest === 'false') { return 'https://disqus.com/pages/?mtctest=false'; } return 'https://disqus.com/pages/'; }, }); return ExploreApp; });