mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
7d99ee8466
no issue - rename the config option to disable preloading the urls - always expose the urlservice as singleton - do the initialisation of the service inside the constructor
11 lines
241 B
JavaScript
11 lines
241 B
JavaScript
'use strict';
|
|
|
|
const config = require('../../config'),
|
|
UrlService = require('./UrlService'),
|
|
urlService = new UrlService({
|
|
disableUrlPreload: config.get('disableUrlPreload')
|
|
});
|
|
|
|
// Singleton
|
|
module.exports = urlService;
|