Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This plugin worked two weeks ago but isn't working now for IE 11 #46

Open
Yangk402 opened this issue Jul 20, 2016 · 1 comment
Open

Comments

@Yangk402
Copy link

This plugin can save table to html excel but can't open. When it opens, nothing appears.
It works well for Chrome.

@speed
Copy link

speed commented Jul 30, 2016

@Yangk402

change code:

           if (typeof Blob !== "undefined") {
                    //use blobs if we can
                    fullTemplate = [fullTemplate];
                    //convert to array
                    var blob1 = new Blob(fullTemplate, { type: "text/html" });
                    window.navigator.msSaveBlob(blob1, getFileName(e.settings) );
             } 

to:

             if (typeof Blob !== "undefined") {
                    //use blobs if we can
                    fullTemplate=e.format(fullTemplate, e.ctx);
                    fullTemplate = [fullTemplate];
                    //convert to array
                    var blob1 = new Blob(fullTemplate, { type: "text/html" });
                    window.navigator.msSaveBlob(blob1, getFileName(e.settings) );
                }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants