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
exports.originReqDetect = (event, context, callback) => { | |
const isDesktopHeader = 'CloudFront-Is-Desktop-Viewer'; | |
const isTabletHeader = 'CloudFront-Is-Tablet-Viewer'; | |
console.log("Event", JSON.stringify(event)); | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
const isDesktop = |
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
/** | |
* This code work with: | |
* jQuery 1.x | |
* Google Analytics trackin code | |
* https://github.com/sitexw/BlockAdBlock/blob/master/blockadblock.js | |
* https://github.com/carhartl/jquery-cookie/blob/master/src/jquery.cookie.js | |
* #article Article id | |
* #overlay transparence overlay | |
*/ | |
var adbStart = false; |