location.protocol problem

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...
Post Reply
Posts: 169
Joined: Thu Nov 19, 2015 8:39 pm

location.protocol problem

Post by joedarock »

I have a comprehensive web app developed in CrossUI Ver 1.4 that I want to also deploy as a desktop app. The location.protocol property, which in Ver 1.3 and earlier used to return "file:" when deployed as desktop app, now returns "chrome extension" when deployed as desktop app. Any idea what's going on?

Posts: 356
Joined: Sat Apr 27, 2013 9:22 am

Re: location.protocol problem

Post by support »

We upgraded the nwjs version in CrossUI 1.4.

NW.js application is running as a Chrome App internally. All chrome.* platform APIs and features can be used in NW application now. The default protocol is changed from file:// to chrome-extension://, where the host part of the URL is the generated id. The app:// protocol in 0.12 is replaced by chrome-extension:// protocol.

http://docs.nwjs.io/en/latest/For%20Use ... to%200.13/

Post Reply