Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.36 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.36 KB

#mraid-extension Enable viewing of MRAID creatives in a desktop browser.

There are two components, a polyfill that creates the window.mraid object and a browser extension that intercepts any request for mraid.js files and redirects the request to the polyfill.

#Installation The extension is available for download from the chrome store here.

#Running the extension locally

npm install
npm start

After starting the app, you will be serving mraid.js from localhost:9000/mraid.js. You can also load the local version of the chrome extension by opening chrome://extensions, click the 'Developer Mode' checkbox, click 'Load upacked extension' button and select the dist/chrome folder. At this point, your browser will redirect all requests for any mraid.js file to localhost:9000/mraid.js.

##Editing the local files After running npm start, any changes under the src/polyfill/ directory will be picked up automatically, but changes under src/extension/ will require reloading the extension from the chrome://extensions page.

Building a release version

npm install
./build.sh

Release version will be located in the dist/ directory. The dist/chrome_release.zip can be uploaded the chrome store.