• File: namespace.js
  • Full Path: /home/daemondevin/public_html/portableapps/personal/themestrap/vendor/namespace.js
  • Date Modified: 10/23/2026 3:45 AM
  • File size: 547 bytes
  • MIME-type: application/javascript
  • Charset: utf-8
// Minimal Themestrap namespace for pages that load plugin files directly.
// The full framework (themestrap.js) can replace this file without changes to the plugins.
window.themestrap = window.themestrap || {};
window.themestrap.fn = window.themestrap.fn || {
    getOptions: function (o) {
        if (!o) return {};
        if (typeof o === 'object') return o;
        try { return JSON.parse(String(o).replace(/'/g, '"')); } catch (e) { return {}; }
    },
    showErrorMessage: function (title, msg) { console.error(title + ': ' + msg); }
};