Skip to content

Commit 65ec96f

Browse files
author
joshuastray
committed
add cc.sys.OpenURL
1 parent b3d7c70 commit 65ec96f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: CCBoot.js

+10
Original file line numberDiff line numberDiff line change
@@ -1797,6 +1797,16 @@ cc._initSys = function (config, CONFIG_KEY) {
17971797
str += "platform : " + self.platform + "\r\n";
17981798
cc.log(str);
17991799
}
1800+
1801+
/**
1802+
* Open a url in browser
1803+
* @memberof cc.sys
1804+
* @name openURL
1805+
* @param {String} url
1806+
*/
1807+
sys.openURL = function(url){
1808+
window.open(url);
1809+
}
18001810
};
18011811

18021812
//+++++++++++++++++++++++++something about sys end+++++++++++++++++++++++++++++

0 commit comments

Comments
 (0)