public/liff-starter.js
/**
 * Initialize the app by calling functions handling individual app components
 */
Initialize the app by calling functions handling individual app components
Initialize the app by calling functions handling individual app components
function initializeApp() {
  displayLiffData();
  displayIsInClientInfo();
  registerButtonHandlers();
  if (liff.isLoggedIn()) {
    document.getElementById("liffLoginButton").disabled = true;
  } else {
    document.getElementById("liffLogoutButton").disabled = true;
  }
}
function initializeApp ( ) { displayLiffData ( ) ; displayIsInClientInfo ( ) ; registerButtonHandlers ( ) ; if ( liff . isLoggedIn ( ) ) { document . getElementById ( "liffLoginButton" ) . disabled = true ; } else { document . getElementById ( "liffLogoutButton" ) . disabled = true ; } }
Initialize the app by calling functions handling individual app components
Initialize the app by calling functions handling individual app components
// check if the user is logged in/out, and disable inappropriate button