UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

15 lines (12 loc) 276 B
'use strict'; const fallbackWindow = {}; function locateWindow() { if (typeof window !== "undefined") { return window; } else if (typeof self !== "undefined") { return self; } return fallbackWindow; } exports.locateWindow = locateWindow;