README.md in artwork-0.5.0 vs README.md in artwork-0.6.0

- old
+ new

@@ -67,9 +67,21 @@ so you could prevent this if you add (*ABOVE* the top script): <style> .artwork-reload-splash body { display: none; } </style> <%= activate_resolution_independence %> +### Usage in frames + +The client-side code which checks for the current browser's resolutions will be +disabled by default when the site is not the topmost frame, ie. when loaded from +an iframe. + +You can override this behaviour by setting a truthy value to a global variable: + + window.useArtworkInFrames = true + +This has to happen before the `<%= activate_resolution_independence %>` call. + ## Configuration Set the following variables in an app initializer: - `Artwork.supported_resolutions_list`