Remove some spot.js dependencies
This commit is contained in:
@@ -78,7 +78,7 @@ export default {
|
||||
return {page: sPage, items: asHash};
|
||||
},
|
||||
setHash(sPage = '', asItems = []) {
|
||||
if(typeof asItems == 'string') asItems = [asItems];
|
||||
if(typeof asItems == 'string' && asItems != '') asItems = [asItems];
|
||||
const sItems = (asItems.length > 0)?(this.spot.consts.hash_sep + asItems.join(this.spot.consts.hash_sep)):'';
|
||||
window.location.hash = '#' + sPage + sItems;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user