[FIX] website: use underscore's startsWith method for browser support
Since ES6's startsWith method is not supported by all/old browser, replace it with underscore's one
This commit is contained in:
@@ -69,7 +69,7 @@ var PagePropertiesDialog = widget.Dialog.extend({
|
||||
context: context
|
||||
},
|
||||
}).then(function (page) {
|
||||
page[0].url = page[0].url.startsWith('/') ? page[0].url.substring(1) : page[0].url;
|
||||
page[0].url = _.str.startsWith(page[0].url, '/') ? page[0].url.substring(1) : page[0].url;
|
||||
self.page = page[0];
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user