Page MenuHomePhabricator

Allow mobile-specific gadgets
Closed, ResolvedPublic


Since ResourceLoader only supports desktop-specific modules, it's only possible to have desktop-specific gadgets (by not specifying targets=mobile). Since targets is planned for removal (T127268), it's not worthwhile changing ResouceLoader to allow mobile-specific modules, instead (per the recommendation on T127147#2073423) the mobile-specific skin (minerva) should be used to limit gadgets to mobile. Unfortunately, gadgets' skins option looks for the user's skin preference, rather than what skin is actually displayed, and so it doesn't work.

Event Timeline

Change 299950 had a related patch set uploaded (by Majr):
Fix skins option to use currently displayed skin, rather than user preference

Majr removed a project: Patch-For-Review.

Gerritbot should've marked this as resolved when rEGADb340532c526a was merged.