-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use patch-package instead of keeping google script in repo
- Loading branch information
1 parent
ff46625
commit dce822a
Showing
5 changed files
with
417 additions
and
52,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/node_modules/@google/earthengine/build/browser.js b/node_modules/@google/earthengine/build/browser.js | ||
index 1513223..18b6d65 100644 | ||
--- a/node_modules/@google/earthengine/build/browser.js | ||
+++ b/node_modules/@google/earthengine/build/browser.js | ||
@@ -26821,6 +26821,12 @@ ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json"); | ||
goog.global.EXPORTED_FN_INFO = exportedFnInfo; | ||
})(); | ||
|
||
-goog.global = window; | ||
-goog.Timer.defaultTimerObject = window; | ||
-module.exports = ee; | ||
+// goog.global = window; | ||
+// goog.Timer.defaultTimerObject = window; | ||
+// module.exports = ee; | ||
+ | ||
+// https://github.com/google/earthengine-api/pull/173 | ||
+// This change is to support running this script in a web worker, | ||
+// which doesn't have access to the window object | ||
+goog.Timer.defaultTimerObject = self | ||
+module.exports = goog.global.ee = ee |
Oops, something went wrong.