Skip to content

Commit

Permalink
FIX: No mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Oct 3, 2023
1 parent c6bdaac commit 443d5df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
15 changes: 0 additions & 15 deletions doc/_static/js/mixin.js

This file was deleted.

7 changes: 6 additions & 1 deletion doc/_static/js/set_installer_tab.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { documentReady } from "./mixin";
/* inspired by https://tobiasahlin.com/blog/move-from-jquery-to-vanilla-javascript/ */

function documentReady(callback) {
if (document.readyState != "loading") callback();
else document.addEventListener("DOMContentLoaded", callback);
}

function setTabs() {
var platform = "linux";
Expand Down
7 changes: 6 additions & 1 deletion doc/_static/js/update_installer_version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { documentReady } from "./mixin";
/* inspired by https://tobiasahlin.com/blog/move-from-jquery-to-vanilla-javascript/ */

function documentReady(callback) {
if (document.readyState != "loading") callback();
else document.addEventListener("DOMContentLoaded", callback);
}

async function getRelease() {
result = await fetch("https://api.github.com/repos/mne-tools/mne-installers/releases/latest");
Expand Down

0 comments on commit 443d5df

Please sign in to comment.