Skip to content

Commit

Permalink
Fixes: Mobile first
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal authored and Heulitig committed Oct 25, 2023
1 parent f1ba552 commit e6ff850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastn-js/js/postInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ftd.post_init = function () {
const COOKIE_DARK_MODE = "dark";
const COOKIE_LIGHT_MODE = "light";
const DARK_MODE_CLASS = "dark";
let last_device = "desktop";
let last_device = ftd.device.get();

window.onresize = function () {
initialise_device()
Expand Down
4 changes: 2 additions & 2 deletions fastn-js/js/virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ fastn_virtual.hydrate = function(main) {
let found_device = ftd.device.get();
if (current_device !== found_device) {
ftd.device = fastn.mutable(current_device);
// let styles = document.getElementById("styles");
// styles.innerText = "";
let styles = document.getElementById("styles");
styles.innerText = "";
var children = document.body.children;
// Loop through the direct children and remove those with tagName 'div'
for (var i = children.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit e6ff850

Please sign in to comment.