mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
19 lines
556 B
JavaScript
19 lines
556 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import {
|
|
setPwaAssetLinksForAdmin,
|
|
setPwaHeadContentForAdmin,
|
|
setPwaToggleForAdmin,
|
|
} from '/server/lib/adminPwaSettings';
|
|
|
|
Meteor.methods({
|
|
async setAdminPwaToggle(field, enabled) {
|
|
return setPwaToggleForAdmin(this.userId, field, enabled);
|
|
},
|
|
async setAdminPwaHeadContent(metaTags, linkTags, manifest) {
|
|
return setPwaHeadContentForAdmin(this.userId, metaTags, linkTags, manifest);
|
|
},
|
|
async setAdminPwaAssetLinks(content) {
|
|
return setPwaAssetLinksForAdmin(this.userId, content);
|
|
},
|
|
});
|