Skip to content

Commit

Permalink
Merge pull request #21 from sdasda7777/sdasda7777_pages20
Browse files Browse the repository at this point in the history
Actually finally probably fixed the web config
  • Loading branch information
sdasda7777 authored Mar 22, 2024
2 parents 2576881 + fff1c27 commit 3ac714f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@
<!--Register Service Worker. this will cache the wasm / js scripts for offline use (for PWA functionality). -->
<!-- Force refresh (Ctrl + F5) to load the latest files instead of cached files -->
<script>
export const get_config = () => {
console.log("get_config called");
return "";
};
// We disable caching during development so that we always view the latest version.
if ('serviceWorker' in navigator && window.location.hash !== "#dev") {
window.addEventListener('load', function () {
Expand Down
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ use bwi::BWI;
pub mod minesweeper_model;
use minesweeper_model::{CellState, DIMENSIONS_COUNT, GameBoard, GameState, InitialGameSettings};

use std::{cmp::min, time::Duration};
#[cfg(not(target_arch = "wasm32"))]
use std::fs;
#[cfg(target_arch = "wasm32")]
use std::include_str;

use eframe::{egui, emath::Align2};
use eframe::egui::{Button, containers::panel::TopBottomPanel, Key, KeyboardShortcut,
menu, Modifiers, PointerButton, Response, RichText, Sense};
use eframe::epaint::{Color32, FontId, Pos2, Rect, Rounding, Shadow, Shape, Stroke};
use std::{cmp::min, fs, time::Duration, include_str};
use web_time::SystemTime;
use toml::Table;

Expand Down

0 comments on commit 3ac714f

Please sign in to comment.