This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function DeepLinker(options) { | |
| if (!options) { | |
| throw new Error('no options') | |
| } | |
| var hasFocus = true; | |
| var didHide = false; | |
| // window is blurred when dialogs are shown | |
| function onBlur() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| toBuddhistYear: (moment, format) => { | |
| var christianYear = moment.format('YYYY') | |
| var buddhishYear = (parseInt(christianYear) + 543).toString() | |
| return moment | |
| .format(format.replace('YYYY', buddhishYear).replace('YY', buddhishYear.substring(2, 4))) | |
| .replace(christianYear, buddhishYear) | |
| } | |
| } |
From episode "5 - Setting Up Universal Links (Deep Linking)" on the Inside iOS Dev Podcast
1) Create an apple-app-site-association file that contains JSON data about the URLs that your app can handle.
- Create
apple-app-site-associationtext file without.jsonfile extension - Use
application/jsonMIME type for the text file - Have the following contents of the file similar to this format:
{ "applinks": {
"apps": [],