Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
FIX : for some reasons, injecting core-js is not always in this relat…
Browse files Browse the repository at this point in the history
…ive path. This may be better to specify the relative from a well known one : the one from the current script

This should fix the bug encountered by many customers : #23
  • Loading branch information
jnrdt committed Mar 26, 2017
1 parent ad4587c commit 85d7d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phantom-page-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ page.settings.localToRemoteUrlAccessEnabled = true
page.settings.resourceTimeout = 15000

page.onInitialized = function () {
page.injectJs('../node_modules/core-js/client/core.js')
page.injectJs(page.libraryPath + '/../../core-js/client/core.js')
}

page.onResourceRequested = function (requestData, request) {
Expand Down

0 comments on commit 85d7d8c

Please sign in to comment.