Files
timeoverflow/app/assets/javascripts/application/mobile_app_libs.js
2020-02-26 00:18:22 +01:00

6 lines
222 B
JavaScript

// Used by the mobile app to register the device token
// https://github.com/coopdevs/timeoverflow-mobile-app
window.TimeOverflowRegisterExpoDeviceToken = function (token) {
$.post('/device_tokens', { token: token });
}