mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Cross-browser support for JS strings startWith
This commit is contained in:
parent
d5be8ec843
commit
a0f6626367
3 changed files with 5 additions and 6 deletions
|
@ -12,7 +12,6 @@
|
|||
/* jshint node: true */
|
||||
|
||||
module.exports = function (environment) {
|
||||
|
||||
var ENV = {
|
||||
modulePrefix: 'documize',
|
||||
podModulePrefix: 'documize/pods',
|
||||
|
@ -94,7 +93,7 @@ module.exports = function (environment) {
|
|||
|
||||
process.argv.forEach(function (element) {
|
||||
if (element !== undefined) {
|
||||
if (element.startsWith("apiHost=")) {
|
||||
if (element.indexOf('apiHost=') === 0) {
|
||||
element = element.replace("apiHost=", "");
|
||||
ENV.apiHost = element;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue