Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/urlPrefix/prefix/g

  • Loading branch information...
commit 5f60ee3e124135c40c21bfc84e506f429246e218 1 parent d3d428c
Stephen Murphy twobit authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/core.js
8 lib/core.js
View
@@ -42,9 +42,9 @@ var ShakerCore = function (config) {
this._app = this._store.getAppConfig(null, 'definition') || {};
var appConfig = this._app.staticHandling || {};
- this._urlPrefix = '/static';
+ this._prefix = '/static';
if (typeof appConfig.prefix !== 'undefined') {
- this._urlPrefix = appConfig.prefix ? '/' + appConfig.prefix : '';
+ this._prefix = appConfig.prefix ? '/' + appConfig.prefix : '';
}
this._root = this._store._shortRoot;
@@ -63,7 +63,7 @@ ShakerCore.prototype.getConfig = function() {
// Static prefix for assets generated
ShakerCore.prototype.getStaticRoot = function() {
- return this._urlPrefix + '/' + this._root + '/';
+ return this._prefix + '/' + this._root + '/';
};
// Base dir of app
@@ -1032,7 +1032,7 @@ ShakerCore.prototype._mojitResources = function (urls) {
type = content_type.split('/')[0];
if (content_type in {'application/javascript': 1, 'text/css': 1, 'text/html': 1}) {
- base = url.substring(this._urlPrefix.length + 1);
+ base = url.substring(this._prefix.length + 1);
split = base.split('/', 2); // [mojit_name, subdir]
if (split[0] === this._root) {
if (split[1] in resources.app) {
Please sign in to comment.
Something went wrong with that request. Please try again.