src/js/controls/BrowserPopout.js
function() {
		var config = { content: this._config },
			storageKey = 'gl-window-config-' + lm.utils.getUniqueId(),
			urlParts;

		config = ( new lm.utils.ConfigMinifier() ).minifyConfig( config );

		try {
			localStorage.setItem( storageKey, JSON.stringify( config ) );
		} catch( e ) {
			throw new Error( 'Error while writing to localStorage ' + e.toString() );
		}

		urlParts = document.location.href.split( '?' );

		// URL doesn't contain GET-parameters
		if( urlParts.length === 1 ) {
			return urlParts[ 0 ] + '?gl-window=' + storageKey;

			// URL contains GET-parameters
		} else {
			return document.location.href + '&gl-window=' + storageKey;
		}
	}
function() {
		var config = { content: this._config },
			storageKey = 'gl-window-config-' + lm.utils.getUniqueId(),
			urlParts;

		config = ( new lm.utils.ConfigMinifier() ).minifyConfig( config );

		try {
			localStorage.setItem( storageKey, JSON.stringify( config ) );
		} catch( e ) {
			throw new Error( 'Error while writing to localStorage ' + e.toString() );
		}

		urlParts = document.location.href.split( '?' );

		// URL doesn't contain GET-parameters
		if( urlParts.length === 1 ) {
			return urlParts[ 0 ] + '?gl-window=' + storageKey;

			// URL contains GET-parameters
		} else {
			return document.location.href + '&gl-window=' + storageKey;
		}
	}
function ( ) { var config = { content : this . _config } , storageKey = 'gl-window-config-' + lm . utils . getUniqueId ( ) , urlParts ; config = ( new lm . utils . ConfigMinifier ( ) ) . minifyConfig ( config ) ; try { localStorage . setItem ( storageKey , JSON . stringify ( config ) ) ; } catch ( e ) { throw new Error ( 'Error while writing to localStorage ' + e . toString ( ) ) ; } urlParts = document . location . href . split ( '?' ) ; // URL doesn't contain GET-parameters if ( urlParts . length === 1 ) { return urlParts [ 0 ] + '?gl-window=' + storageKey ; // URL contains GET-parameters } else { return document . location . href + '&gl-window=' + storageKey ; } }
Creates the URL for the new window, including the
config GET parameter

@returns {String} URL
Creates the URL for the new window including the config GET parameter