@inboxsdk/core 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inboxsdk/core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Library for building browser extensions for Gmail",
5
5
  "main": "inboxsdk.js",
6
6
  "author": "Streak",
package/pageWorld.js CHANGED
@@ -2880,8 +2880,12 @@ function setupGmailInterceptorOnFrames(mainFrame, jsFrame) {
2880
2880
  });
2881
2881
  main_wrappers.push({
2882
2882
  isRelevantTo(connection) {
2883
- const url = new URL(connection.url);
2884
- return url.hostname.endsWith('.google.com');
2883
+ // check for absolute URLs going to a google domain
2884
+ if (connection.url.startsWith('https://')) {
2885
+ const url = new URL(connection.url);
2886
+ return url.hostname.endsWith('.google.com');
2887
+ }
2888
+ return false;
2885
2889
  },
2886
2890
  originalSendBodyLogger(connection) {
2887
2891
  if (connection.headers['X-Goog-Api-Key']) {