Commit 827f99c2 authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

process.platform

parent 9806bcc6
Pipeline #3638 failed with stage
in 0 seconds
"use strict";
var cmd_or_ctrl = process.platform === "darwin" ? "Cmd" : "Ctrl";
var cmd_or_ctrl = (process.platform === "darwin") ? "Cmd" : "Ctrl";
exports.menu = {
"new": { key: "N", modifiers: cmd_or_ctrl },
......
......@@ -7,7 +7,10 @@ var pd_engine_id;
function is_webapp(){
return typeof process.platform === "undefined";
if(typeof(Module) === "undefined"){
return false;
}
return true;
}
exports.is_webapp = is_webapp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment