inkeliz

Overwolf sample plugin not working!

Recommended Posts

Hi,
 

I have one app in Overwolf.
But, I looking for the "NPAPI".

I download the two demos in:
http://developers.overwolf.com/documentation/#overwolf-sample-plugin
http://developers.overwolf.com/documentation/#overwolf-io-plugin
https://github.com/overwolf/overwolf-sample-plugin/tree/master/sample%20app

All have get error!

The IO Plugin have error in the:
 

      if (plugin() == null) {
        document.querySelector('#title').innerText = "Plugin couldn't be loaded??";
        return;
      } else {
        document.querySelector('#title').innerText = "Plugin was loaded!";
      }

I need to place to:
 

      if (plugin() == null) {
        document.querySelector('#title').innerText = "Plugin couldn't be loaded??";
      } else {
        document.querySelector('#title').innerText = "Plugin was loaded!";
      }

The "plugin().isDirectory" and " plugin().fileExists" works!
But the "plugin().getTextFile" and "plugin().getBinaryFile" not work!

The "Sample Plugin" get error on start and can't fix and stil crashed.

 

 

How I can make the NPAPI?
Is possible write/change TXT file with it?
Is possible use cURL or something in the external dll?

 

Share this post


Link to post
Share on other sites

Hi,

Can you open the devtools window (ctrl+shift+i on the app's window) and type in the console: navigator.plugins.refresh(false);

 

Then reload the page (F5) see if it works.

 

Make sure you take the latest io plugin version - we released a new version yesterday.

 

You could wrap cURL - although XmlHttpRequest (native javascript) should suffice - what are you trying to achieve?

Share this post


Link to post
Share on other sites

Does this app work for you? (https://owtemp.s3.amazonaws.com/sample%20app.zip)

 

Regarding HTTP request - is there an HTTP server on the localhost?

Try to use: http://developers.overwolf.com/documentation/#ExtensionExternallyConnectable(externally_connectable) in the manifest to allow CORS access to localhost then it should work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now