Adobe CEP6 extension CSInterface.prototype.closeExtension() not working

New Here ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

I am trying to use the closeExtension() on a secondary window. However, it doesn't seem to close the window or do anything at all. Am I misunderstanding what this method is supposed to do?

CSInterface.js

    /** Closes this extension. */

    CSInterface.prototype.closeExtension = function()

    {

        window.__adobe_cep__.closeExtension();

    };

Here is a button I've temporarily hardcoded to test it

   $(".closeme").click(function(){

      CSInterface.prototype.closeExtension();

    //  csInterface.closeExtension(); -- I have an instance of CSInterface name csInterface

    });

The window maintains all functionality. It's almost as if this method does nothing.

TOPICS
Scripting

Views

293

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation