1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2023-02-26 12:23:21 +08:00
parent 1b5d0525e5
commit caf59837b7

View File

@ -35,7 +35,8 @@ Volcanos("user", {
reload: function(force) { (force || confirm("重新加载页面?")) && location.reload() }, reload: function(force) { (force || confirm("重新加载页面?")) && location.reload() },
jumps: function(url) { location.href = url }, jumps: function(url) { location.href = url },
opens: function(url) { window.openurl? window.openurl(url): (window.open(url) || (location.href = url)) }, opens: function(url) { window.openurl? window.openurl(url): (window.open(url) || (location.href = url)) },
open: function(url) { window.open(url) || (location.href = url) }, open: function(url) { window.open(url) },
// open: function(url) { window.open(url) || (location.href = url) },
close: function(url) { window.close() }, close: function(url) { window.close() },
theme: function(can, name) { can.base.isString(name) && (name = [name]) || name || [], can.user.isWindows && name.push("windows") theme: function(can, name) { can.base.isString(name) && (name = [name]) || name || [], can.user.isWindows && name.push("windows")
can.user.isWebview && name.push(html.WEBVIEW), can.user.isMobile && name.push(html.MOBILE) && can.user.isLandscape() && name.push(html.LANDSCAPE) can.user.isWebview && name.push(html.WEBVIEW), can.user.isMobile && name.push(html.MOBILE) && can.user.isLandscape() && name.push(html.LANDSCAPE)