mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
parent
9195e9e4e3
commit
b586913598
53 changed files with 60 additions and 750 deletions
|
|
@ -924,16 +924,6 @@ bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
|
|||
return false;
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_GONK)
|
||||
JSString* strVersion = JS_NewStringCopyZ(cx, "Gonk");
|
||||
if (!strVersion){
|
||||
return false;
|
||||
}
|
||||
JS::Rooted<JS::Value> valVersion(cx, JS::StringValue(strVersion));
|
||||
if (!JS_SetProperty(cx, objSys, "Name", valVersion)) {
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
nsCOMPtr<nsIXULRuntime> runtime = do_GetService(XULRUNTIME_SERVICE_CONTRACTID);
|
||||
if (runtime) {
|
||||
nsAutoCString os;
|
||||
|
|
@ -950,7 +940,6 @@ bool DefineOSFileConstants(JSContext *cx, JS::Handle<JSObject*> global)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
#endif // defined(MOZ_WIDGET_GONK)
|
||||
|
||||
#if defined(DEBUG)
|
||||
JS::Rooted<JS::Value> valDebug(cx, JS::TrueValue());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue