[Solved] How to make if statement on product activation? [closed]


You can use the following code

If(key is correct){
  const messageBoxOptions = {
      type: "question",
      title: "Enter valid key",
      message: "License key is wrong"
  };
  dialog.showMessageBox(messageBoxOptions)
 } else {
    const remote = require('electron').remote;
    const BrowserWindow = remote.BrowserWindow;
    const win = new BrowserWindow({
    height: 600,
    width: 800
    });
   win.loadURL('<url>');
}

1

solved How to make if statement on product activation? [closed]