/* Copyright (c) Royal Holloway, University of London | Contact Blake Loring (blake@parsed.uk), Duncan Mitchell (Duncan.Mitchell.2015@rhul.ac.uk), or Johannes Kinder (johannes.kinder@rhul.ac.uk) for details or support | LICENSE.md for license details */

"use strict";

/**
 * This is a function that detects whether we are using Electron and 
 * if so does a remote call through IPC rather than a direct require.
 */

 const ELECTRON_PATH_MAGIC = '/electron/';

export default function (library) {
	let lrequire = require;

	if (process && process.execPath && process.execPath.indexOf(ELECTRON_PATH_MAGIC) != -1) {
		lrequire = require('electron').remote.require;
	}

	const result = lrequire(library);

	return result.default ? result.default : result;
}
@@ -267,490 +267,68 @@
 %22;%0A%0A
-/**%0A * This is a function that detects whether we are using Electron and %0A * if so does a remote call through IPC rather than a direct require.%0A */%0A%0A const ELECTRON_PATH_MAGIC = '/electron/';%0A%0Aexport default function (library) %7B%0A%09let lrequire = require;%0A%0A%09if (process && process.execPath && process.execPath.indexOf(ELECTRON_PATH_MAGIC) != -1) %7B%0A%09%09lrequire = require('electron').remote.require;%0A%09%7D%0A%0A%09const result = lrequire(library);%0A%0A%09return result.default ? result.default : result;%0A%7D
+export default function (library) %7B%0A%09return require(library);%0A%7D%0A

Remove external electron link as we're rethinking that for now