Zotero.platform and Zotero.oscpu are undefined in latest beta

30 views
Skip to first unread message

Emiliano Heyns

unread,
May 21, 2024, 6:11:40 AMMay 21
to zotero-dev
Zotero.platform and Zotero.oscpu are undefined in latest beta. Not a huge deal but I have them in my denug logs, and it helps diagnosis.

Dan Stillman

unread,
May 22, 2024, 1:39:38 AMMay 22
to zoter...@googlegroups.com
On 5/21/24 6:11 AM, Emiliano Heyns wrote:
> Zotero.platform and Zotero.oscpu are undefined in latest beta. Not a
> huge deal but I have them in my denug logs, and it helps diagnosis.

They no longer told the truth.

https://github.com/zotero/zotero/commit/78c0a3d050c65cc2ec4210a808f2862ace6f813a

Use Zotero.isWin/isMac/isLinux for platform conditionals,
Zotero.getOSVersion() for the OS version, and Zotero.arch for the
architecture.
Reply all
Reply to author
Forward
0 new messages