MCPcopy Index your code
hub / github.com/github-tools/github / loadImage

Function loadImage

test/fixtures/imageBlob.js:3–13  ·  view source on GitHub ↗
(imageReady)

Source from the content-addressed store, hash-verified

1'use strict';
2
3function loadImage(imageReady) {
4 if (typeof window === 'undefined') { // We're in NodeJS
5 loadInNode(imageReady);
6 } else { // We're in the browser
7 if (typeof window._phantom !== 'undefined') {
8 loadInPhantom(imageReady);
9 } else {
10 loadInRealBrowser(imageReady);
11 }
12 }
13}
14
15function loadInNode(imageReady) {
16 var fs = require('fs');

Callers 1

repository.spec.jsFile · 0.85

Calls 3

loadInNodeFunction · 0.85
loadInPhantomFunction · 0.85
loadInRealBrowserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…