• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Access nw.js (node-webkit) features in CEP?

New Here ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

Is it possible to access the underlying features of nw.js (node-webkit) in a CEP panel? For example, nw.js exposes the Chrome extension API to view cookies. 

https://nwjs.readthedocs.io/en/latest/References/Chrome%20Extension%20APIs/

 

The CEP-Resources docs indicate that CEP 11.1 uses nw.js 0.50.1. https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/CEP%2011.1%20HTML%20Ex...

 

Thanks so much for any guidance.

TOPICS
SDK

Views

469

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

correct answers 1 Correct answer

New Here , Apr 23, 2022 Apr 23, 2022

nw.js features are not available as in CEP there is no global nw object that exposes the nw window api, it's disabled/removed and instead the global CEP object is provided which provides Adobe Host apis, you can't neither use nw dom features like nwdirectory.

Votes

Translate

Translate
Adobe Employee ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

Sounds encouraging; haven't tried it. Let us know what you find, in your testing!

Votes

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
New Here ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

I see that window.chrome does not have the properties that nw.js affords:

window.chrome
// > {loadTimes: f, csi: f}
window.chrome.cookies
// > undefined

 I poked around a fair amount to see if nw.js's version of chrome is stashed away somewhere but haven't come up with anything.

Votes

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
Adobe Employee ,
Apr 23, 2022 Apr 23, 2022

Copy link to clipboard

Copied

LATEST

Votes

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
New Here ,
Apr 23, 2022 Apr 23, 2022

Copy link to clipboard

Copied

nw.js features are not available as in CEP there is no global nw object that exposes the nw window api, it's disabled/removed and instead the global CEP object is provided which provides Adobe Host apis, you can't neither use nw dom features like nwdirectory.

Votes

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