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
// jQuery MobileのloadPageで異なるホストを弾く | |
// Note: 同一ドメインにオープンリダイレクタがないか確認すること | |
(function($){ | |
var old = $.mobile.loadPage; | |
var gethost = function(url){ | |
var a = document.createElement("a"); | |
a.href = url; | |
return a.host | |
}; |