This file contains 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 getKeys(obj, prefix = '') { | |
if (typeof obj === 'undefined' || obj === null) return []; | |
return [ | |
...Object.keys(obj).map(key => `${prefix}${key}`), | |
...Object.entries(obj).reduce((acc, [key, value]) => { | |
if (typeof value === 'object') return [...acc, ...getKeys(value, `${prefix}${key}.`)]; | |
return acc; | |
}, []), | |
]; | |
} |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<title>Stay Standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<script src="stay_standalone.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a href="http://google.com/">Remote Link (Google)</a></li> |