(imageReady)
| 13 | } |
| 14 | |
| 15 | function loadInNode(imageReady) { |
| 16 | var fs = require('fs'); |
| 17 | var path = require('path'); |
| 18 | |
| 19 | var imageBlob = fs.readFileSync(path.join(__dirname, 'gh.png')); // This is a Buffer(). |
| 20 | var imageB64 = imageBlob.toString('base64'); |
| 21 | |
| 22 | imageReady(imageB64, imageBlob); |
| 23 | } |
| 24 | |
| 25 | function loadInPhantom(imageReady) { |
| 26 | var xhr = new XMLHttpRequest(); |
no outgoing calls
no test coverage detected
searching dependent graphs…