To perform discovery of context properties by the browser itself, expose a part of the Context Engine called the Discovery Resolver by copying a JavaScript file into your web application.
Procedure
- In your web application, create or navigate to a location in which to store JavaScript files.
- From your installation media, from the \Content Delivery\roles\context\extension-cartridge\javascript\ folder, copy the file discover-min.js to this location.
- Within the
<head> element of all webpages on which you intend to use the Context Engine, add the following:
<script type="text/javascript" src="js/discover-min.js"></script>
where js/ is the location in your Web application to which you copied the file.