mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:18:00 +01:00
Fix WinNT OS detection in storage.jsm.
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule("storage", {
|
|||||||
|
|
||||||
var prefService = services.get("pref").getBranch("extensions.dactyl.datastore.");
|
var prefService = services.get("pref").getBranch("extensions.dactyl.datastore.");
|
||||||
|
|
||||||
const win32 = services.get("runtime").OS == "Win32";
|
const win32 = /^win(32|nt)$/i.test(services.get("runtime").OS);
|
||||||
|
|
||||||
function getFile(name) {
|
function getFile(name) {
|
||||||
let file = storage.infoPath.clone();
|
let file = storage.infoPath.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user