Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
www.fudou6.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liaili
www.fudou6.com
Commits
ddd8fbb3
Commit
ddd8fbb3
authored
Aug 11, 2016
by
superman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除Promise
parent
195ea91a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.hbs
views/index.hbs
+2
-2
No files found.
views/index.hbs
View file @
ddd8fbb3
...
...
@@ -2,7 +2,7 @@
(
function
(
ua
){
var
isAndroid
=
/
(?:
Android
)
/gi
.
test
(
ua
);
var
isIPhone
=
/
(?:
iPhone
)
/gi
.
test
(
ua
);
function
deserialize
(
str
=
location
.
search
)
{
function
deserialize
(
str
)
{
var
query
=
{};
var
arr
=
(
str
+
''
).
replace
(
/^
\?
/g
,
''
).
split
(
'&'
);
if
(
arr
.
length
){
...
...
@@ -16,7 +16,7 @@
}
return
query
;
}
var
viewPc
=
deserialize
().
vpc
;
var
viewPc
=
deserialize
(
location
.
search
).
vpc
;
if
(
!
viewPc
&&
(
isAndroid
||
isIPhone
)){
location
.
href
=
'/h5'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment