Skip to content

"New" gmail breaks plugin #17

@smithygreg

Description

@smithygreg

Not sure if anyone is maintaining this or interested, but in case someone comes across the same issue I have...

The "new" gmail interface that is being phased in in mid to late 2018 breaks this plugin.
The specific issue happens in line 243 of gmailr.js

var win = top.document.getElementById("js_frame").contentDocument.defaultView;

Gmail no longer includes the iframe with this script. The script itself is included in the document itself.

This seems to fix the issue.
try{ win = top.document.getElementById("js_frame").contentDocument.defaultView; //Old Gmail } catch(e){ win = window; //New Gmail }

Be aware that there are a whole host of other issues that cropped up with this "new" interface...One of which being the format of the data that is sent out (It is no longer a url string...It is now a json object).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions