PNS/server/application/backend/static/android.js
2024-07-08 20:05:21 +03:00

9 lines
No EOL
400 B
JavaScript

const deviceNameInput = document.getElementById("add_device_name");
const deviceTokenInput = document.getElementById("add_device_token");
const encryptionKeyInput = document.getElementById("add_encryption_key");
if (typeof Android !== 'undefined') {
encryptionKeyInput.value = Android.publicKey()
deviceTokenInput.value = Android.messagingToken()
deviceNameInput.value = Android.deviceName()
}