()
| 88 | } |
| 89 | |
| 90 | function validateToString () { |
| 91 | if (originalToString.call !== originalCallFn) { |
| 92 | console.error(`Integrity check failed for toString.call`) |
| 93 | throw new Error(integrityErrorMessage) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | function validateElectron (electron) { |
| 98 | // Hard coded function as this is electron code and there's not an easy way to get the function string at package time. If this fails on an updated version of electron, we'll need to update this. |