mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-01-22 13:58:58 +01:00
22 lines
353 B
JavaScript
22 lines
353 B
JavaScript
var layout = (function() {
|
|
|
|
var render = function() {
|
|
var html = helper.e("html");
|
|
html.style.setProperty("--layout-width", helper.getObject({
|
|
object: state.get(),
|
|
path: "layout.width"
|
|
}) + "%");
|
|
};
|
|
|
|
var init = function() {
|
|
render();
|
|
};
|
|
|
|
// exposed methods
|
|
return {
|
|
render: render,
|
|
init: init
|
|
};
|
|
|
|
})();
|