mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 12:56:34 -04:00
18 lines
406 B
JavaScript
18 lines
406 B
JavaScript
'use strict';
|
|
|
|
window.returnTo = '$$RETURN_TO$$';
|
|
window.clayConfig = require('./config.js');
|
|
window.claySettings = {};
|
|
window.customFn = require('./custom-fn.js');
|
|
|
|
var platform = window.navigator.userAgent.match('Android') ? 'android' : 'ios';
|
|
document.documentElement.classList.add('platform-' + platform);
|
|
|
|
window.expand = function(obj) {
|
|
obj.size = 5;
|
|
};
|
|
|
|
function unexpand(obj) {
|
|
obj.size = 1;
|
|
}
|