How to use 'window webkit' in JavaScript

Every line of 'window webkit' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
318function thawWebkit(hook, initial, onDone) {
319 // Restore the user's manual zoom.
320 hook.setAttribute('content', [
321 'initial-scale='+originalScale,
322 'minimum-scale='+originalScale,
323 'maximum-scale='+originalScale
324 ].join(','));
325
326 // Restore the page's zoom bounds.
327 hook.setAttribute('content', [
328 'user-scalable='+initial['user-scalable'],
329 'minimum-scale='+initial['minimum-scale'],
330 'maximum-scale='+initial['maximum-scale'],
331 (initial.width ? 'width='+initial.width : null)
332 ].filter(Boolean).join(','));
333
334 // Remove our meta viewport hook.
335 document.head.removeChild(hook);
336
337 setScroll(originalScroll);
338
339 setTimeout(function() {
340 if (onDone)
341 onDone();
342 }, refreshDelay);
343}

Related snippets