var qs = require('query-string');
var URL = require('./lib/url');
var baseHosts = getBaseHosts();
module.exports = function (url, opt) {
// by default, only reloads local style sheets
var localOnly = true;
if (opt && opt.local === false) {
localOnly = false;
}
// determine base URL
var baseUrl = document.location.pathname;
var baseTag = document.querySelector('base');
if (baseTag) {
baseUrl = baseTag.getAttribute('href');
var parsedBase = URL.parse(baseUrl);
parsedBase.pathname = '/';
parsedBase.hash = null;
parsedBase.query = null;
parsedBase.search = null;
baseUrl = URL.format(parsedBase);
}
// Find all and