liff-starter.js
/**
 * Initialize LIFF
 * @param {string} myLiffId The LIFF ID of the selected element
 */
Initialize LIFF
@param {string} myLiffId The LIFF ID of the selected element
Initialize LIFF @param { string } myLiffId The LIFF ID of the selected element
function initializeLiff(myLiffId) {
  liff
    .init({
      liffId: myLiffId
    })
    .then(() => {
      initializeApp();
    })
    .catch(err => {
      document.getElementById("liffAppContent").classList.add("hidden");
      document
        .getElementById("liffInitErrorMessage")
        .classList.remove("hidden");
    });
}
function initializeLiff ( myLiffId ) { liff . init ( { liffId : myLiffId } ) . then ( ( ) => { initializeApp ( ) ; } ) . catch ( err => { document . getElementById ( "liffAppContent" ) . classList . add ( "hidden" ) ; document . getElementById ( "liffInitErrorMessage" ) . classList . remove ( "hidden" ) ; } ) ; }
Initialize LIFF
 @param {string} myLiffId The LIFF ID of the selected element
Initialize LIFF @param { string } myLiffId The LIFF ID of the selected element
// start to use LIFF's api