PageSourceSearch

https://cloudfront.bernews.com/wp-content/themes/wp-clear/js/ios-bugfix.js?ver=3.7.5

js bernews.com collected 2026-09-24 09:39:23 UTC 581 bytes, 21 lines download raw bytes

1// Fix iPhone viewport scaling bug on orientation change
2(function(doc) {
3
4	var addEvent = 'addEventListener',
5	    type = 'gesturestart',
6	    qsa = 'querySelectorAll',
7	    scales = [1, 1],
8	    meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
9
10	function fix() {
11		meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
12		doc.removeEventListener(type, fix, true);
13	}
14
15	if ((meta = meta[meta.length - 1]) && addEvent in doc) {
16		fix();
17		scales = [.25, 1.6];
18		doc[addEvent](type, fix, true);
19	}
20
21}(document));

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.