SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. isItInstalled("Vs Code")
  2.   .then(result => {
  3.     if (result) {
  4.       mainWindow.loadURL(`index.html`);
  5.     } else {
  6.       mainWindow.loadURL(`error.html`);
  7.     }
  8.   })
  9.   .catch(err => {
  10.     mainWindow.loadURL(`500.html`);
  11.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top