Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Use preferred JS detection for Opera Mini
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Oct 27, 2017
1 parent 1e73e18 commit 835abd0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion polyfill.js
Expand Up @@ -5590,7 +5590,7 @@ function __cons(t, a) {
try {
var doc;
// Use another document/base tag/anchor for relative URL resolution, if possible
if (navigator.userAgent.match(/Opera Mini/)) {
if (Object.prototype.toString.call(window.operamini) === "[object OperaMini]") {
iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.documentElement.appendChild(iframe);
Expand Down
2 changes: 1 addition & 1 deletion polyfill.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion url.js
Expand Up @@ -280,7 +280,7 @@
try {
var doc;
// Use another document/base tag/anchor for relative URL resolution, if possible
if (navigator.userAgent.match(/Opera Mini/)) {
if (Object.prototype.toString.call(window.operamini) === "[object OperaMini]") {
iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.documentElement.appendChild(iframe);
Expand Down
2 changes: 1 addition & 1 deletion web.js
Expand Up @@ -1189,7 +1189,7 @@
try {
var doc;
// Use another document/base tag/anchor for relative URL resolution, if possible
if (navigator.userAgent.match(/Opera Mini/)) {
if (Object.prototype.toString.call(window.operamini) === "[object OperaMini]") {
iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.documentElement.appendChild(iframe);
Expand Down
2 changes: 1 addition & 1 deletion web.min.js

Large diffs are not rendered by default.

0 comments on commit 835abd0

Please sign in to comment.