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

Windows Store WebView "safe" DOM mutations #91

Closed
danielweck opened this issue Feb 12, 2015 · 4 comments
Closed

Windows Store WebView "safe" DOM mutations #91

danielweck opened this issue Feb 12, 2015 · 4 comments

Comments

@danielweck
Copy link
Member

Some methods are not covered by default by winstore-jscompat (see https://github.com/MSOpenTech/winstore-jscompat/ ), for example document.write() which is used by zipIframeLoader: https://github.com/readium/readium-js/blob/develop/epub-modules/epub-fetch/src/models/iframe_zip_loader.js#L81

Fix using wrapper:

if (window.MSApp && window.MSApp.execUnsafeLocalFunction) {}
danielweck added a commit that referenced this issue Feb 12, 2015
( winstore-jscompat / window.MSApp.execUnsafeLocalFunction() )
@danielweck
Copy link
Member Author

index.html (or reader.html depending on the naming convention) should include:

<script type="text/javascript" src="winstore-jscompat.js"></script>

@danielweck
Copy link
Member Author

Fixed here: 5351a27

...but the complete solution requires including winstore-jscompat.js, as per my comment above.

@mahag
Copy link

mahag commented Feb 13, 2015

Is this a reply to this question readium/readium-js-viewer#281 ?
I dont have this folder/subfolders/file
epub-modules/epub-fetch/src/models/iframe_zip_loader.js
What should i do to add it ?

@danielweck
Copy link
Member Author

@mahag this is unrelated to DRM / EPUB content protection / encryption.

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

No branches or pull requests

3 participants