1angular.module('main', ['ngCookies']); 2const app = angular.module('main'); 3 4//Add a function to Date to easily add hours 5Date.prototype.addHours = function(h) { 6 this.setTime(this.getTime() + (h*60*60*1000)); 7 return this; 8} 9 10//Cookie defaults 11angular.module('main').config(function($cookiesProvider){ 12 let exp = new Date().addHours(24); 13 $cookiesProvider.defaults.path = "/"; 14 $cookiesProvider.defaults.expires = exp; 15 $cookiesProvider.defaults.samesite = "strict"; 16});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.