Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8829 from crh0716/853420
Browse files Browse the repository at this point in the history
Bug 853420 - Use absolute path for the optimized js file. r=vingtetun, a=tef+
  • Loading branch information
crh0716 committed Apr 1, 2013
2 parents 381103c + 4c1ac1e commit ddb38ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/camera/index.html
Expand Up @@ -18,7 +18,7 @@
<!-- <script defer src="/shared/js/media/video_player.js"></script> -->
<!-- <script defer src="/shared/js/media/media_frame.js"></script> -->
<!-- <script defer src="/shared/js/gesture_detector.js"></script> -->
<script defer src="shared/js/lazy_loader.js"></script>
<script defer src="/shared/js/lazy_loader.js"></script>
<script defer src="js/camera.js"></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion build/webapp-optimize.js
Expand Up @@ -170,7 +170,7 @@ function optimize_aggregateJsResources(doc, webapp, htmlFile) {

// find the absolute root of the app's html file.
let rootUrl = htmlFile.parent.path;
rootUrl = rootUrl.replace(webapp.manifestFile.parent.path, '');
rootUrl = rootUrl.replace(webapp.manifestFile.parent.path, '') || '.';
// the above will yield something like: '', '/facebook/', '/contacts/', etc...

function writeAggregatedScript(config) {
Expand Down

0 comments on commit ddb38ac

Please sign in to comment.