mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
• Platform logos changed to full size instead of icons • Made profile pictures bigger
16 lines
507 B
JavaScript
16 lines
507 B
JavaScript
// Construct URL
|
|
const currentURL = window.location.href;
|
|
let baseURL = currentURL;
|
|
|
|
if (baseURL.endsWith("index.html"))
|
|
baseURL = baseURL.replace("index.html", "");
|
|
|
|
const configJson = "?config=" + baseURL + "config.json";
|
|
|
|
// Implement widget dock core
|
|
window.dockWrapper = document.getElementById('dock-wrapper');
|
|
dockWrapper.src = `../../.common/core/widget-dock-core${configJson}`;
|
|
|
|
dockWrapper.addEventListener('load', () => {
|
|
dockWrapper.contentWindow.content.src = baseURL + '/contents';
|
|
}); |