Skip to content

Commit

Permalink
disable experiments on prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
cqr committed May 28, 2014
1 parent 6c977a1 commit ab759bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/prerender-shim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
angular.module('prx').config(function (prxperimentProvider) {
prxperimentProvider.enabled(false);
});
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports.listen = function (listenSpec, folder) {
file: folder + '/index.html',
url: 'https://' + req.host + req.url,
src: ['window.callPhantom = function () { window.phantomCalled = true; }'],
scripts: [__dirname + '/prerender-shim.js'],
features: {
FetchExternalResources: ["script"],
ProcessExternalResources: true
Expand Down

0 comments on commit ab759bf

Please sign in to comment.