Sha256: 05e5a8a5d5da63c3b5a9b667875aa2b70189ece9a5582828d210aefc21fa86f5
Contents?: true
Size: 498 Bytes
Versions: 45
Compression:
Stored size: 498 Bytes
Contents
function setSessionStorage() { // Set the initial click count for tracking when the alert has been closed if( sessionStorage.clickcount == undefined ) { sessionStorage.clickcount = 0; } } function gapiInit(param1, param2) { setSessionStorage(); if ( sessionStorage.clickcount != undefined && sessionStorage.clickcount >= 1 ) return; // If the user has already closed the alert, do not execute the Google API call again. gapi.load(param1, param2); } export default gapiInit;
Version data entries
45 entries across 45 versions & 1 rubygems